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

How to make UI button work in editor

Discussion in 'UGUI & TextMesh Pro' started by Wulirocks, Apr 20, 2021.

  1. Wulirocks

    Wulirocks

    Joined:
    Mar 18, 2013
    Posts:
    63
    Hi,

    I am trying to make Ui button register a click in the editor but can't figure out how...

    Under On Click, I set to "Editor and runtime", I even set my script to [ExecuteInEditMode],
    then click on the button on Display1 and nothing happens. I still have to launch the game to test it out....

    What s the secret?

    Thanks!

    View attachment 838534