Click or drag to resize

ServiceLocatorResolveForSceneT Method (Scene)

Locates and returns a transient object or singleton of the specified type for the given 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>(
	Scene scene
)
Request Example View Source

Parameters

scene
Type: Scene

[Missing <param name="scene"/> documentation for "M:Archon.SwissArmyLib.Utils.ServiceLocator.ResolveForScene``1(UnityEngine.SceneManagement.Scene)"]

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