I have a button and in the OnClick() event I have a gameobject that has the script that I want to attach to the button. When I drag and drop the gameobject, click “No Function”, and click on the dropdown with the scripts name, my public void function does not show up.
Why is this the case? In the same project I have another button, but the public function that I have attached to it shows up in that function dropdown.