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

◆ OnDestroy()

virtual async void Sisus.Init.Wrapper< TWrapped >.OnDestroy ( )
protectedvirtual

The OnDestroy even function is called when this Wrapper or the GameObject to which it is attached is destroyed, or the scene which the GameObject is part of is unloaded.

OnDestroy also gets called when the application shuts down and when leaving Play mode inside the Editor.

Note: OnDestroy will only be called on GameObjects that have previously been active.