Init(args)
Scripting Reference

◆ Init() [5/5]

abstract void Sisus.Init.ScriptableObject< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >.Init ( TFirstArgument  firstArgument,
TSecondArgument  secondArgument,
TThirdArgument  thirdArgument,
TFourthArgument  fourthArgument,
TFifthArgument  fifthArgument 
)
protectedpure virtual

Provides the ScriptableObject with the objects that it depends on.

You can think of the Init function as a parameterized constructor alternative for the ScriptableObject.

Init is called at the beginning of the Awake event function when the script is being loaded, before OnAwake, OnEnable and Start.

Parameters
firstArgumentThe first object that this ScriptableObject depends on.
secondArgumentThe second object that this ScriptableObject depends on.
thirdArgumentThe third object that this ScriptableObject depends on.
fourthArgumentThe fourth object that this ScriptableObject depends on.
fifthArgumentThe fifth object that this ScriptableObject depends on.

Implements Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >.