| ServiceLocatorRegisterLazySingletonForSceneT Method (Scene) |
Registers a scene-specific concrete singleton of the given type.
The instance won't be created until the first time it is resolved.
Namespace:
Archon.SwissArmyLib.Utils
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Lazy<T> RegisterLazySingletonForScene<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:
LazyT[Missing <returns> documentation for "M:Archon.SwissArmyLib.Utils.ServiceLocator.RegisterLazySingletonForScene``1(UnityEngine.SceneManagement.Scene)"]
See Also