Hello World,going through a strange problem,whenever i assign a script to my UI button,it does not show me all the functions(public) in that script,plz help.attaching a photo illustrating it.
It looks like you dragged a script asset itself directly from the project window into the event UI. You need to drag a GameObject from your current scene (From the “hierarchy” window) into that spot that has your script attached to it as a component.
You might also be having the same issue as here: Can't select script Function in OnClick . You also need to double check that the class name in your script is the same as the name of the script file.
1 Like
O
Oh Man,Amazing Insight,Love you,thanks alot
