![]() |
Init(args)
Scripting Reference
|
Class responsible for broadcasting the IUpdate.Update, ILateUpdate.LateUpdate and IFixedUpdate.FixedUpdate events to subscribers during the corresponding Unity event functions.
Classes wrapped by Wrapper<TWrapped> can subscribe to these events simply by implementing the IUpdate, ILateUpdate or IFixedUpdate interface. They will receiving these events for as long as the wrapper component remains enabled and active and is not destroyed.
Note that these events do not get sent in edit mode, not even if the wrapper component has the ExecuteAlways attribute.
Static Public Member Functions | |
static void | Subscribe ([NotNull] IUpdate subscriber) |
Subscribes subscriber to receive a callback during the MonoBehaviour.Update event function. More... | |
static void | Subscribe ([NotNull] ILateUpdate subscriber) |
Subscribes subscriber to receive a callback during the MonoBehaviour.LateUpdate event function. More... | |
static void | Subscribe ([NotNull] IFixedUpdate subscriber) |
Subscribes subscriber to receive a callback during the MonoBehaviour.FixedUpdate event function. More... | |
static void | Unsubscribe ([NotNull] IUpdate subscriber) |
Unsubscribes subscriber from receiving a callback during the MonoBehaviour.Update event function. More... | |
static void | Unsubscribe ([NotNull] ILateUpdate subscriber) |
Unsubscribes subscriber from receiving a callback during the MonoBehaviour.LateUpdate event function. More... | |
static void | Unsubscribe ([NotNull] IFixedUpdate subscriber) |
Unsubscribes subscriber from receiving a callback during the MonoBehaviour.FixedUpdate event function. More... | |
static new Coroutine | StartCoroutine ([NotNull] IEnumerator coroutine) |
Starts the provided coroutine . More... | |
static new void | StopCoroutine ([NotNull] IEnumerator coroutine) |
Stops the provided coroutine . More... | |
static new void | StopCoroutine ([NotNull] Coroutine coroutine) |
Stops the provided coroutine . More... | |
static void | InvokeAtEndOfFrame (Action action) |
Invokes action at the end of this frame. More... | |
Additional Inherited Members | |
![]() | |
void | Init (TArgument argument) |
Initializes the object with an object that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
Initializes the object with two objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
Initializes the object with three objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
Initializes the object with four objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
Initializes the object with five objects that it depends on. More... | |
![]() | |
void | Init (TArgument argument) |
Initializes the object with an object that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
Initializes the object with two objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
Initializes the object with three objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
Initializes the object with four objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
Initializes the object with five objects that it depends on. More... | |
![]() | |
void | Init (TArgument argument) |
Initializes the object with an object that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
Initializes the object with two objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
Initializes the object with three objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
Initializes the object with four objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
Initializes the object with five objects that it depends on. More... | |
![]() | |
void | Init (TArgument argument) |
Initializes the object with an object that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
Initializes the object with two objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
Initializes the object with three objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
Initializes the object with four objects that it depends on. More... | |
void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
Initializes the object with five objects that it depends on. More... | |
![]() | |
void | StopAllCoroutines () |
Stops all coroutine coroutines that are currently running on this object, if any. More... | |
![]() | |
abstract void | Init (TArgument argument) |
Provides the Component with the argument object that it depends on. More... | |
virtual void | OnReset () |
Reset state to default values. More... | |
virtual void | OnAwake () |
OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More... | |
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument) |
Provides the Component with the objects that it depends on. More... | |
virtual void | OnReset () |
Reset state to default values. More... | |
virtual void | OnAwake () |
OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More... | |
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) |
Provides the Component with the objects that it depends on. More... | |
virtual void | OnReset () |
Reset state to default values. More... | |
virtual void | OnAwake () |
OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More... | |
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument) |
Provides the Component with the objects that it depends on. More... | |
virtual void | OnReset () |
Reset state to default values. More... | |
virtual void | OnAwake () |
OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More... | |
abstract void | Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument) |
Provides the Component with the objects that it depends on. More... | |
virtual void | OnReset () |
Reset state to default values. More... | |
virtual void | OnAwake () |
OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More... | |
![]() | |
TArgument this[[NotNull] string | memberName [set] |
Assigns an argument received during initialization to a field or property by the memberName given name. More... | |
object this[[NotNull] string | memberName [set] |
Assigns an argument received during initialization to a field or property by the memberName given name. More... | |