Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Init()

bool Sisus.Init.MonoBehaviourBase.Init ( Context context)
abstractprotected

Requests the object to try and acquire all the objects that it depends on and initialize itself.

Parameters
contextThe context from which a method is being called.

Many objects that implement IInitializable are only able to acquire their own dependencies when Context.EditMode or Context.Reset is used in Edit Mode. For performance and reliability reasons it is recommended to do these operations in Edit Mode only, and cache the results.

Returns
true if was able to locate all dependencies and initialize itself, or has already successfully initialized itself previously; otherwise, false.

Implements Sisus.Init.IInitializable.