| Instance< TScriptableObject, TArgument > |
| Instance< TScriptableObject, TArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > |
| Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > |
|
◆ Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument >() [2/2]
| static void Sisus.Init.Create.Instance< TScriptableObject, TFirstArgument, TSecondArgument, TThirdArgument > |
( |
out TScriptableObject | instance, |
|
|
TFirstArgument | firstArgument, |
|
|
TSecondArgument | secondArgument, |
|
|
TThirdArgument | thirdArgument ) |
|
static |
Creates an instance of ScriptableObject of type TScriptableObject and initializes it with the provided arguments.
For classes that derive from ScriptableObject<TFirstArgument, TSecondArgument, TThirdArgument> IInitializable<TFirstArgument, TSecondArgument, TThirdArgument>.Init gets called at the beginning of the Awake event.
For classes that implement IInitializable<TFirstArgument, TSecondArgument, TThirdArgument> IInitializable<TFirstArgument, TSecondArgument, TThirdArgument>.Init is called at the end of initialization, after Awake and OnEnable but before Start.
Classes that implement IArgs<TFirstArgument, TSecondArgument, TThirdArgument> can also manually acquire the dependencies using the InitArgs.TryGet<TClient, TFirstArgument, TSecondArgument, TThirdArgument> function during any stage of initialization, including the constructor - in which case it is even possible to assign the dependencies into readonly fields.
- Template Parameters
-
| TScriptableObject | Type of the ScriptableObject to create. |
- Parameters
-
| instance | When this method returns, contains the scriptable object of type TScriptableObject that was created. This parameter is passed uninitialized. |
| firstArgument | The first object that the created ScriptableObject depends on. |
| secondArgument | The second object that the created ScriptableObject depends on. |
| thirdArgument | The third object that the created ScriptableObject depends on. |
- Exceptions
-
- Type Constraints
-
| TScriptableObject | : | ScriptableObject | |
| TScriptableObject | : | IArgs | |
| TScriptableObject | : | TFirstArgument | |
| TScriptableObject | : | TSecondArgument | |
| TScriptableObject | : | TThirdArgument | |
|