- Home /
Question by
gustavoarcanjo · Feb 27, 2016 at 03:35 PM ·
c#buttonbutton trigger eventsonclickhide
How do I make a function not appear on UnityEvents / Button OnClick lists?
I have a Unity UGUI Button which has a OnClick UnityEvent, where public functions can be called.
However, I don't want some functions to be accessible in the editor to avoid mistakes from other people, but they are being used in the code.
Is there a way I can make a public void function hidden in the UnityEvents list?
For example: ConsolidateEntry () should not appear here.
It would also be ok if all the functions of this class/object were not an option to add to OnClick.
screen-shot-2016-02-25-at-160354.png
(74.4 kB)
Comment
Your answer
Follow this Question
Related Questions
OnClick() animation 0 Answers
Button On Click event firing GetMouseButton within script 1 Answer
Button OnClick() calling wrong function 1 Answer
How do i make the perfect button? 1 Answer