Forge/Integration/LevelDesigner.cs
/// <summary>
/// Prepares the restoration state and clears out entity/template containers in preparation
/// either a Unity serialization cycle or entering play mode.
/// </summary>
Prepares the restoration state and clears out entity/template containers in preparation
either a Unity serialization cycle or entering play mode.
Prepares the restoration state and clears out entity / template containers in preparation either a Unity serialization cycle or entering play mode .
private void PrepareForRestoration() {
            SavedLevelTemplateState = null;
            SavedSharedTemplateState = null;
            SavedSnapshotState = null;
            if (LevelTemplates != null) {
                SavedLevelTemplateState = LevelManager.SaveTemplateGroup(LevelTemplates);
            }
            if (SharedTemplates != null) {
                SavedSharedTemplateState = LevelManager.SaveTemplateGroup(SharedTemplates);
            }
            if (Snapshot != null) {
                SavedSnapshotState = LevelManager.SaveSnapshot(Snapshot);
            }
            LevelTemplates = null;
            SharedTemplates = null;
            Snapshot = null;
            TemplateContainer.ClearContainers(LevelTemplatesChild);
            TemplateContainer.ClearContainers(SharedTemplatesChild);
            EntityContainer.ClearContainers(gameObject);
        }
private void PrepareForRestoration ( ) { SavedLevelTemplateState = null ; SavedSharedTemplateState = null ; SavedSnapshotState = null ; if ( LevelTemplates != null ) { SavedLevelTemplateState = LevelManager . SaveTemplateGroup ( LevelTemplates ) ; } if ( SharedTemplates != null ) { SavedSharedTemplateState = LevelManager . SaveTemplateGroup ( SharedTemplates ) ; } if ( Snapshot != null ) { SavedSnapshotState = LevelManager . SaveSnapshot ( Snapshot ) ; } LevelTemplates = null ; SharedTemplates = null ; Snapshot = null ; TemplateContainer . ClearContainers ( LevelTemplatesChild ) ; TemplateContainer . ClearContainers ( SharedTemplatesChild ) ; EntityContainer . ClearContainers ( gameObject ) ; }
Prepares the restoration state and clears out entity/template containers in preparation
either a Unity serialization cycle or entering play mode.
Prepares the restoration state and clears out entity / template containers in preparation either a Unity serialization cycle or entering play mode .