Class OnDestroyNotifier
Behavior that fires a callback when it is destroyed.
Inherited Members
Namespace: Unity.XR.CoreUtils
Syntax
[AddComponentMenu("")]
[ExecuteInEditMode]
[HelpURL("https://docs.unity.cn/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> |