| ServiceLocatorResolveT Method |
Locates and returns a transient object or singleton of the specified type.
Searches for a global object first, if nothing is found and includeActiveScene is true then it
searches for a scene specific resolver.
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 public static T Resolve<T>(
bool includeActiveScene = true
)
Request Example
View SourceParameters
- includeActiveScene (Optional)
- Type: SystemBoolean
Whether to search for a scene specific resolver if a global one isn't found.
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