Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnFocus()

Called when the window gets keyboard focus.
Read time 1 minuteLast updated 5 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}