Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ InitTarget() [2/2]

object IServiceInitializer. Sisus.Init.IServiceInitializer< out TService >.InitTarget ( params object[] arguments)

Returns a new instance of the service class, a UnityEngine.Awaitable<T> that returns a new instance of the service class asynchronously, or null.

If this method returns null, the framework will handle creating the instance internally.

If this method returns an UnityEngine.Awaitable<T>, the framework will await for the result and register it as a service once it's ready.

If this method returns an object of another type, that will be registered as a service immediately.

Parameters
argumentsZero or more other services used during initialization of the target service.
Returns
An instance of the service class, an UnityEngine.Awaitable<T>, or null.

Implements Sisus.Init.IServiceInitializer.