![]() |
Init(args)
Scripting Reference
|
A base class for a component that can specify the ten arguments used to initialize a component that implements IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument>.
The arguments can be assigned using the inspector and are serialized as part of the client's scene or prefab asset.
The arguments get injected to the TClient client during the Awake event.
The client receives the arguments via the Init method where they can be assigned to member fields or properties.
TClient | Type of the initialized client component. |
TFirstArgument | Type of the first argument to pass to the client component's Init function. |
TSecondArgument | Type of the second argument to pass to the client component's Init function. |
TThirdArgument | Type of the third argument to pass to the client component's Init function. |
TFourthArgument | Type of the fourth argument to pass to the client component's Init function. |
TFifthArgument | Type of the fifth argument to pass to the client component's Init function. |
TSixthArgument | Type of the sixth argument to pass to the client component's Init function. |
TSeventhArgument | Type of the seventh argument to pass to the client component's Init function. |
TEighthArgument | Type of the eighth argument to pass to the client component's Init function. |
TNinthArgument | Type of the ninth argument to pass to the client component's Init function. |
TTenthArgument | Type of the tenth argument to pass to the client component's Init function. |
TClient | : | MonoBehaviour | |
TClient | : | IInitializable | |
TClient | : | TFirstArgument | |
TClient | : | TSecondArgument | |
TClient | : | TThirdArgument | |
TClient | : | TFourthArgument | |
TClient | : | TFifthArgument | |
TClient | : | TSixthArgument | |
TClient | : | TSeventhArgument | |
TClient | : | TEighthArgument | |
TClient | : | TNinthArgument | |
TClient | : | TTenthArgument |
Additional Inherited Members | |
![]() | |
override TClient | InitTarget ([AllowNull] TClient target) |
virtual void | OnReset (ref TFirstArgument firstArgument, ref TSecondArgument secondArgument, ref TThirdArgument thirdArgument, ref TFourthArgument fourthArgument, ref TFifthArgument fifthArgument, ref TSixthArgument sixthArgument, ref TSeventhArgument seventhArgument, ref TEighthArgument eighthArgument, ref TNinthArgument ninthArgument, ref TTenthArgument tenthArgument) |
Resets the Init arguments to their default values. | |
![]() | |
TFirstArgument | FirstArgument [get, set] |
The first argument passed to the TClient client's Init function. | |
TSecondArgument | SecondArgument [get, set] |
The second argument passed to the TClient client's Init function. | |
TThirdArgument | ThirdArgument [get, set] |
The third argument passed to the TClient client's Init function. | |
TFourthArgument | FourthArgument [get, set] |
The fourth argument passed to the TClient client's Init function. | |
TFifthArgument | FifthArgument [get, set] |
The fifth argument passed to the TClient client's Init function. | |
TSixthArgument | SixthArgument [get, set] |
The sixth argument passed to the TClient client's Init function. | |
TSeventhArgument | SeventhArgument [get, set] |
The seventh argument passed to the TClient client's Init function. | |
TEighthArgument | EighthArgument [get, set] |
The eighth argument passed to the TClient client's Init function. | |
TNinthArgument | NinthArgument [get, set] |
The ninth argument passed to the TClient client's Init function. | |
TTenthArgument | TenthArgument [get, set] |
The tenth argument passed to the TClient client's Init function. | |