Use UnityEvent.AddListener to extend the onClick click events. The added UnityAction is called when the Button press is released. A Button can have multiple listeners. As an example, in the script example below, btn3 can have TaskOnClick added as a second
For my script I created a public GameObject which is the object holding the script I want to access, so I would drag that object in the inspector view and then the "character.GetComponent<Character>().AnimStop();" line is what you're l
The plan is to pass the generic GuiElementPicked event to the relay from the UI button (any UI button), along with the button (or other UI element) itself. So that my listener can evaluate which buttons were raising the events and the listener (on the Gam
Post a Comment:
Showing 0 Comments: