Question by
xiaoschannel · Aug 18, 2019 at 10:59 AM ·
scripting problemeditorbutton
Any easy way to choose the method called when clicking a button?
Every tutourial i managed to find comes down to this:
Create a button
Create a script with some public method
Add the script to some element in the scene
reference that script from the button's OnClick
choose the public method you created in 2
The problem I have is, this list is cluttered with irrelevant public methods and objects that i don't care about:
despite there's only one method I wrote. Can I make it so only my method shows up?
annotation-2019-08-18-195703.png
(32.5 kB)
Comment