文档

Unity Engine

Unity Engine

OnFocus()

Called when the window gets keyboard focus.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void OnFocus()

Remarks

Additional Resources: OnLostFocus.
OrthographicPreviewer (OnFocus())
Preview your camera in orthographic mode when you select the window.

Examples

{code Modules/UIElements/Tests/UIElementsExamples/Assets/EditorWindowCodeExamples/OrthographicPreview.cs}