Missing Button.ExitGame error
Hello lovely people,
Trying to create a simple ExitGame button. The code I have is super simple and is attached to the relevant Quit button in the UI. However, when I drag said script and function onto the button, the tab where the function name normally appears, instead reads "".
This is my sciript -
public void ExitGame() { Application.Quit(); }
Any ideas why this is happening? And what could be done to resolve?
Cheers, Clare
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612133049im_/https://answers.unity.com/themes/thub/images/avi.jpg)