Ejemplo n.º 1
0
 internal void UpdateTransform(SceneObject parentSO)
 {
     if (parentSO != null)
     {
         Internal_UpdateTransform(mCachedPtr, parentSO.GetCachedPtr());
     }
 }
Ejemplo n.º 2
0
        public void UnmapSceneObject(SceneObject sceneObject)
        {
            if (sceneObject == null)
            {
                return;
            }

            Internal_UnmapSceneObject(mCachedPtr, sceneObject.GetCachedPtr());
        }
Ejemplo n.º 3
0
        public void MapCurveToSceneObject(string curve, SceneObject sceneObject)
        {
            if (curve == null || sceneObject == null)
            {
                return;
            }

            Internal_MapCurveToSceneObject(mCachedPtr, curve, sceneObject.GetCachedPtr());
        }
Ejemplo n.º 4
0
        public NativeCamera(SceneObject sceneObject)
        {
            IntPtr sceneObjPtr = IntPtr.Zero;

            if (sceneObject != null)
            {
                sceneObjPtr = sceneObject.GetCachedPtr();
            }

            Internal_Create(this, sceneObjPtr);
        }
Ejemplo n.º 5
0
        internal NativeLight(SceneObject sceneObject)
        {
            IntPtr sceneObjPtr = IntPtr.Zero;

            if (sceneObject != null)
            {
                sceneObjPtr = sceneObject.GetCachedPtr();
            }

            Internal_Create(this, sceneObjPtr);
        }
Ejemplo n.º 6
0
        public NativeRigidbody(SceneObject linkedSO)
        {
            IntPtr linkedSOPtr = IntPtr.Zero;

            if (linkedSO != null)
            {
                linkedSOPtr = linkedSO.GetCachedPtr();
            }

            Internal_CreateInstance(this, linkedSOPtr);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Creates a new prefab from the provided scene object. If the scene object has an existing prefab link it will
        /// be broken. After the prefab is created the scene object will be automatically linked to it.
        /// </summary>
        /// <param name="so">Scene object to generate the prefab for.</param>
        public Prefab(SceneObject so)
        {
            IntPtr soPtr = so.GetCachedPtr();

            Internal_CreateInstance(this, soPtr);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Creates a new prefab from the provided scene object. If the scene object has an existing prefab link it will
        /// be broken. After the prefab is created the scene object will be automatically linked to it.
        /// </summary>
        /// <param name="so">Scene object to generate the prefab for.</param>
        /// <param name="isScene">Determines if the prefab represents a scene or just a generic group of objects.
        ///                       <see cref="IsScene"/></param>
        public Prefab(SceneObject so, bool isScene = true)
        {
            IntPtr soPtr = so.GetCachedPtr();

            Internal_CreateInstance(this, soPtr, isScene);
        }