OnFocus()
Called when the window gets keyboard focus.
Read time 1 minuteLast updated 12 hours ago
Definition
- Type: Method
- Namespace: UnityEditor
public void OnFocus()
Remarks
Additional Resources: OnLostFocus.

Preview your camera in orthographic mode when you select the window.
Examples
{code Modules/UIElements/Tests/UIElementsExamples/Assets/EditorWindowCodeExamples/OrthographicPreview.cs}