![]() |
Init(args)
Scripting Reference
|
A base class for MonoBehaviours that can be instantiated or added to a GameObject with an argument passed to the Init function of the created instance.
A base class for MonoBehaviours that can be instantiated or added to a GameObject with five arguments passed to the Init function of the created instance.
A base class for MonoBehaviours that can be instantiated or added to a GameObject with four arguments passed to the Init function of the created instance.
A base class for MonoBehaviours that can be instantiated or added to a GameObject with three arguments passed to the Init function of the created instance.
A base class for MonoBehaviours that can be instantiated or added to a GameObject with two arguments passed to the Init function of the created instance.
If the object depends on a class that has the ServiceAttribute then it will be able to receive it in its constructor automatically during initialization.
Instances of classes inheriting from MonoBehaviour<TArgument> receive the argument via the Init method where it can be assigned to a member field or property.
TArgument | Type of the argument received in the Init function. |
If the object depends exclusively on classes that have the ServiceAttribute then it will be able to receive them in its constructor automatically during initialization.
Instances of classes inheriting from MonoBehaviour<TFirstArgument, TSecondArgument> receive the arguments via the Init method where they can be assigned to member fields or properties.
TFirstArgument | Type of the first argument received in the Init function. |
TSecondArgument | Type of the second argument received in the Init function. |
If the object depends exclusively on classes that have the ServiceAttribute then it will be able to receive them in its constructor automatically during initialization.
Instances of classes inheriting from MonoBehaviour<TFirstArgument, TSecondArgument, TThirdArgument> receive the arguments via the Init method where they can be assigned to member fields or properties.
TFirstArgument | Type of the first argument received in the Init function. |
TSecondArgument | Type of the second argument received in the Init function. |
TThirdArgument | Type of the third argument received in the Init function. |
If the object depends exclusively on classes that have the ServiceAttribute then it will be able to receive them in its constructor automatically during initialization.
Instances of classes inheriting from MonoBehaviour<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument> receive the arguments via the Init method where they can be assigned to member fields or properties.
TFirstArgument | Type of the first argument received in the Init function. |
TSecondArgument | Type of the second argument received in the Init function. |
TThirdArgument | Type of the third argument received in the Init function. |
TFourthArgument | Type of the fourth argument received in the Init function. |
If the object depends exclusively on classes that have the ServiceAttribute then it will be able to receive them in its constructor automatically during initialization.
Instances of classes inheriting from MonoBehaviour<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> receive the arguments via the Init method where they can be assigned to member fields or properties.
TFirstArgument | Type of the first argument received in the Init function. |
TSecondArgument | Type of the second argument received in the Init function. |
TThirdArgument | Type of the third argument received in the Init function. |
TFourthArgument | Type of the fourth argument received in the Init function. |
TFifthArgument | Type of the fifth argument received in the Init function. |
Protected Member Functions | |
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... | |
Properties | |
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... | |
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... | |