Hi, I have a problem:
Some things of my input stuff do not work in the build game, while working in the editor. For example camera zoom (while camera movement is working), clicks on objects via raycast don't get recnognised,... - But all of this stuff works in editor. I am using both old and new input system. - but I don't know how things exactly work. If someone solves this in the next 24h they would get a 10$ amazon gift card as a thank you. Let me now if you need more detail!
#Problem with Input System / Build
1 messages · Page 1 of 1 (latest)
So much missing information there, I don't even know where to start
Check the build's logs and see if anything input related stands out
Almost definitely script execution order if it runs OK in Editor
Working with Unity 2022.3.17f, Building for Windows
Development build?
nope
I found something, but still have no idea, what makes the difference in the Build. Do Buttons always trigger Methods in the same order? like from top to bottom? Anyways, I will only be able to continue in like 20h.
what exactly influences the script execution, or like how to fix that if that would be the cause?
As this is quite urgent I am increasing the gift card value to 20$, for the first one to solve
Script Execution Order is random unless you specifically change it. So I suggest you google the term.
the problem will probably resolve to your Awake and Start methods not being called in the order you expect them to be so that is where you should look
If you are getting null ref exceptions then that is where you should be looking. Ask yourself how could these variables be null?
thanks already, going to check that tomorrow
So much for time constraint, lol
I do have other obligations
Update: I've been able to prevent the null reference exceptions i was getting by just doing the stuff i want to do only if all variables are assigned. The weird thing is that this seems to have no impact on the build. - So no new problems did come up, but the input stuff still isn't working