Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Knowing when OnSceneGUI() is not called anymore?

Discussion in 'UGUI & TextMesh Pro' started by FeastSC2, Jun 9, 2019.

  1. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    I would like to know when OnSceneGUI() is not called anymore in one of my editor scripts.

    OnSceneGUI() stops being called the moment my mouse gets out of the scene view. I would like to call something at that precise time. How can I do this?

    Thanks for any help.