文档

Unity Engine

Unity Engine

UnregisterDestructionCallback(Action<GameWindow>)

Unregisters a callback so it is no longer invoked when the window is destroyed.
阅读时间1 分钟最后更新于 1 个月前

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.