Пример #1
0
                public void MarkSceneEdited(SceneModule sceneModule)
                {
                    var spline = Object.Find <Spline>(ref SplineId);

                    sceneModule.MarkSceneEdited(spline.Scene);
                    OnSplineEdited(spline);
                }
Пример #2
0
 void ISceneEditAction.MarkSceneEdited(SceneModule sceneModule)
 {
     var data = Data;
     for (int i = 0; i < data.Selection.Length; i++)
     {
         sceneModule.MarkSceneEdited(data.Selection[i].ParentScene);
     }
 }
Пример #3
0
        /// <inheritdoc />
        public void MarkSceneEdited(SceneModule sceneModule)
        {
            var script = FlaxEngine.Object.Find <Script>(ref _scriptId);

            if (script != null)
            {
                sceneModule.MarkSceneEdited(script.Scene);
            }
        }
Пример #4
0
        /// <inheritdoc />
        public void MarkSceneEdited(SceneModule sceneModule)
        {
            var spline = FlaxEngine.Object.Find <Spline>(ref _splineId);

            if (spline != null)
            {
                sceneModule.MarkSceneEdited(spline.Scene);
            }
        }
Пример #5
0
        /// <summary>
        /// Clears the lightmaps linkage for all open scenes.
        /// </summary>
        public void ClearLightmaps()
        {
            var scenes = SceneManager.Scenes;

            for (int i = 0; i < scenes.Length; i++)
            {
                scenes[i].ClearLightmaps();
            }
            Scene.MarkSceneEdited(scenes);
        }