Click or drag to resize

ServiceLocatorResolveForSceneT Method

Locates and returns a transient object or singleton of the specified type for the currently active scene. Make sure the type is registered first.

Namespace:  Archon.SwissArmyLib.Utils
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static T ResolveForScene<T>()
Request Example View Source

Type Parameters

T
The type to locate an implementation for.

Return Value

Type: T
The transient object or singleton that is mapped to the specified type. If nothing is registered for T the default value for the type is returned.
See Also