Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Any plans to expose the Editor UI element for selecting fuctions?

Discussion in 'UGUI & TextMesh Pro' started by webbut, Oct 22, 2014.

  1. webbut

    webbut

    Joined:
    Jun 25, 2014
    Posts:
    20
    The UI element for selecting functions used for the On Value Chaged in all the new UI elements is pretty nifty . It would be pretty cool if we got some simple Editor calls so we could use it in our custom editor scripts.
     
  2. cowtrix

    cowtrix

    Joined:
    Oct 23, 2012
    Posts:
    322
    Hey Webbut. From memory, you can! Just have a public UnityAction and you'll be able to use that UI to subscribe functions to it.
     
  3. webbut

    webbut

    Joined:
    Jun 25, 2014
    Posts:
    20
    Hm That doesn't seem to be working for me.
     
  4. webbut

    webbut

    Joined:
    Jun 25, 2014
    Posts:
    20
    Oh! Here we go you need to use a UnityEvent and i think it populates it with UnityActions. Thanks! =D