internal void UpdateTransform(SceneObject parentSO) { if (parentSO != null) { Internal_UpdateTransform(mCachedPtr, parentSO.GetCachedPtr()); } }
public void UnmapSceneObject(SceneObject sceneObject) { if (sceneObject == null) { return; } Internal_UnmapSceneObject(mCachedPtr, sceneObject.GetCachedPtr()); }
public void MapCurveToSceneObject(string curve, SceneObject sceneObject) { if (curve == null || sceneObject == null) { return; } Internal_MapCurveToSceneObject(mCachedPtr, curve, sceneObject.GetCachedPtr()); }
public NativeCamera(SceneObject sceneObject) { IntPtr sceneObjPtr = IntPtr.Zero; if (sceneObject != null) { sceneObjPtr = sceneObject.GetCachedPtr(); } Internal_Create(this, sceneObjPtr); }
internal NativeLight(SceneObject sceneObject) { IntPtr sceneObjPtr = IntPtr.Zero; if (sceneObject != null) { sceneObjPtr = sceneObject.GetCachedPtr(); } Internal_Create(this, sceneObjPtr); }
public NativeRigidbody(SceneObject linkedSO) { IntPtr linkedSOPtr = IntPtr.Zero; if (linkedSO != null) { linkedSOPtr = linkedSO.GetCachedPtr(); } Internal_CreateInstance(this, linkedSOPtr); }
/// <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); }
/// <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); }