기술 자료

Unity Engine

Unity Engine

UnregisterDestructionCallback(Action<GameWindow>)

Unregisters a callback so it is no longer invoked when the window is destroyed.
읽는 시간 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.