Skip to content

Commit

Permalink
Move IDelayedInitializationModule back into EditorXR
Browse files Browse the repository at this point in the history
  • Loading branch information
mtschoen-unity committed Jan 5, 2020
1 parent a45cd8d commit 3fa4ce3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
30 changes: 30 additions & 0 deletions Runtime/Scripts/Core/Interfaces/IDelayedInitializationModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using Unity.Labs.ModuleLoader;

namespace Unity.Labs.EditorXR
{
/// <summary>
/// Adds Initialize and Shutdown methods to modules for when editing starts and stops
/// </summary>
public interface IDelayedInitializationModule : IModule
{
/// <summary>
/// Called when editing starts
/// </summary>
void Initialize();

/// <summary>
/// Called when editing stops
/// </summary>
void Shutdown();

/// <summary>
/// Used to sort delayed initialization modules before calling Initialize
/// </summary>
int initializationOrder { get; }

/// <summary>
/// Used to sort delayed initialization modules before calling Shutdown
/// </summary>
int shutdownOrder { get; }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Runtime/Scripts/Modules/SerializedPreferencesModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using Unity.Labs.EditorXR.Core;
using Unity.Labs.ModuleLoader;
using UnityEditor;
using UnityEngine;

Expand Down

0 comments on commit 3fa4ce3

Please sign in to comment.