Class OnDestroyNotifier
Behavior that fires a callback when it is destroyed.
Inherited Members
Namespace: Unity.XR.CoreUtils
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> |