Skip to content

Instantly share code, notes, and snippets.

@olegmrzv
Last active May 29, 2024 14:03
Show Gist options
  • Select an option

  • Save olegmrzv/5adbe4146e95e2938c555f79ca8935f5 to your computer and use it in GitHub Desktop.

Select an option

Save olegmrzv/5adbe4146e95e2938c555f79ca8935f5 to your computer and use it in GitHub Desktop.

Revisions

  1. olegmrzv revised this gist May 29, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Test.cs
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,7 @@ private void Start()

    public static class Entry
    {
    [RuntimeInitializeOnLoadMethod]
    public static void Initialize()
    {
    var obj = new GameObject();
  2. olegmrzv created this gist Dec 18, 2023.
    22 changes: 22 additions & 0 deletions Test.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    public class SomeComponent : MonoBehaviour
    {
    private void Awake()
    {
    transform.position = new Vector3(1, 1, 1);
    }

    private void Start()
    {
    transform.position = new Vector3(2, 2, 2);
    }
    }

    public static class Entry
    {
    public static void Initialize()
    {
    var obj = new GameObject();
    obj.AddComponent<SomeComponent>();
    obj.transform.position = new Vector3(3, 3, 3);
    }
    }