MonoBehaviour.OnDestroyfunction OnDestroy () : voidDescriptionThis function is called when the MonoBehaviour will be destroyed. OnDestroy will only be called on game objects that have previously been active.
JavaScript
function OnDestroy () { using UnityEngine; import UnityEngine |
