Documentation

Unity Engine

Unity Engine

OnFocus()

Called when the window gets keyboard focus.
Read time 1 minuteLast updated 3 days ago

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}