Version: 2023.2

描述

定义要用于注册在其中获得或失去焦点的事件的委托。

This delegate allows you to receive focus change events when implementing code that does not use the MonoBehviour namespace.

Note: When using this delegate to register for focus changed events in code that uses the MonoBehviour namespace you will also receive events from the MonoBehaviour.OnApplicationFocus method if you have implemented it.