UnregisterDestructionCallback(Action<GameWindow>)
Unregisters a callback so it is no longer invoked when the window is destroyed.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windowing
- Assembly: UnityEngine.WindowingModule
public bool UnregisterDestructionCallback(Action<GameWindow> callback)
Parameters
The callback to remove.
Returns
Type | Description |
|---|---|
| bool | True if the callback is successfully removed, false otherwise. |
Remarks
You don't need to unregister a destruction callback before the window is destroyed. Destroying a window clears all of its registered callbacks.