I’m trying to create a UI but I can’t interact with the UI elements in the game scene (mode) in any way, where could be the problem?
I can’t click to buttons and I can’t write anything to input field.
In the game scene I can use my mouse inputs as rotate player but when I click the buttons nothing happens (check the Game view section of post).
I tried to see if another button works and yes actually it works but not on clicking the button, it works on every single click even there is no cursor on it in play mode… Also there is no cursor on the screen to click something.
There is also no cursor in game view, so I am trying to use the system windwos cursor, but in a tut in here I watched, one person was working with the same cursor both in the editor and in the game.
Well we know this stuff does work so work through the usual checklist in the docs, starting with a fresh scene if you must, drag a button in and a responder script, and it will work.
From that, use it as a checklist:
Is there an Eventsystem in your scene?
Do you have another clickable object (a Graphic marked RaycastTarget) in front of everything?
etc etc etc
It may be helpful to step-by-step delete everything you have as you move back towards the basic empty scene setup. Use source control to instantly revert any changes you make and consider these changes investigatory in nature and designed to reveal the issue, not fix the issue.
Otherwise, it’s just debugging. By debugging you can find out exactly what your program is doing so you can fix it.
Use the above techniques to get the information you need in order to reason about what the problem is.
You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.
Once you understand what the problem is, you may begin to reason about a solution to the problem.
I have tried in another scene and nothing has changed. It is about the editor I think suppose because I didn’t use any of my UI scripts. Now I also found a thing:
I use the Unity’s official StarterAssets > FirstPersonController stuff. Now I think I have to do some read.