- Home /
Custom OnClick() implementation and EventSystem
I am currently in the process of creating custom UI for my game and I have a couple of questions I could not find answers online.
First, I would like my UI controls to implement public events that show up in the editor. Like this:
Also, I would like to use standard EventSystem for mouse controls.
Can someone point me in the right direction to implement these features? Implementation from scratch is preferred but derivation from some base control class is also fine.
Answer by YiYiBaBa · Dec 19, 2019 at 03:46 PM
Thank you! What about embedding OnClick() as serializable into the script for custom control? (as shown on the image)
Correction: more like any event that I need to implement?
Your answer
Follow this Question
Related Questions
How to change target of UnityEvent 3 Answers
Unity UI: How to stop select event from propagating? 1 Answer
Need help understanding Event System use. 1 Answer
Broadcast mouse event on Canvas 0 Answers