| ServiceLocatorRegisterSingletonForSceneT Method (T, Scene) |
Registers a specific instance to be a scene-specific singleton for its concrete type.
Namespace:
Archon.SwissArmyLib.Utils
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void RegisterSingletonForScene<T>(
T instance,
Scene scene
)
Request Example
View SourceParameters
- instance
- Type: T
The instance to register as a singleton. - scene
- Type: Scene
The scene to register the singleton type for.
Type Parameters
- T
- The type of the singleton.
See Also