Class OnDestroyNotifier
MonoBehaviour that invokes a callback when it is destroyed.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.XR.CoreUtils
Assembly: Unity.XR.CoreUtils.dll
Syntax
[AddComponentMenu("")]
[ExecuteInEditMode]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.core-utils@2.0/api/Unity.XR.CoreUtils.OnDestroyNotifier.html")]
public class OnDestroyNotifier : MonoBehaviour
Properties
Destroyed
Called when this behavior is destroyed.
Declaration
public Action<OnDestroyNotifier> Destroyed { set; }
Property Value
Type | Description |
---|---|
Action<OnDestroyNotifier> |