| ServiceLocatorRegisterSingletonForSceneT Method (Scene) |
Registers a scene-specific concrete singleton of the given type.
Namespace:
Archon.SwissArmyLib.Utils
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static T RegisterSingletonForScene<T>(
Scene scene
)
where T : new()
Request Example
View SourceParameters
- scene
- Type: Scene
The scene to register the transient type for.
Type Parameters
- T
- The type of the singleton.
Return Value
Type:
T[Missing <returns> documentation for "M:Archon.SwissArmyLib.Utils.ServiceLocator.RegisterSingletonForScene``1(UnityEngine.SceneManagement.Scene)"]
See Also