Exemple #1
0
        public static GameObject CreateChildGameObject(string name, GameObject parentGameObject)
        {
            GameObject gameObject = new GameObject(name);

            gameObject.layer = parentGameObject.layer;
            UnityUtils.ChangeGameObjectParent(gameObject, parentGameObject);
            return(gameObject);
        }
Exemple #2
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     UnityUtils.ChangeGameObjectParent((GameObject)GCHandledObjects.GCHandleToObject(*args), (GameObject)GCHandledObjects.GCHandleToObject(args[1]));
     return(-1L);
 }