Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public bool UnregisterDestructionCallback(Action<GameWindow> callback)

Parameters

The callback to remove.

Returns

Type

Description

boolTrue 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.