- Home /
Strange mouse click behavior problems after build.
Hello all,
Finally I finished my first "game". It works in Unity as I want it to work but when I make a build out of it the mouse clicks work very strange. I made a screencast out of it. First you can see how it works in Unity after this you see how it works in the build.
Where should I look for the problem to fix this?
Thank you in advance.
Hey, can you provide some scripts? How do you deter$$anonymous$$e which card has been clicked? Have you tried changing aspect ratio/resolution within editor Game window? Does it work in that case?
Thank you for wanting to help. Anchoring the buttons made everything work perfectly.
Your buttons probably moved, just add anchors to them and they will stay in place :)
Thank you. I gave every button an anchor and it worked. But I would really like to understand it. Why do the buttons need an anchor? They are placed on a special position. Why do they move without an anchor? Anyway. Thank you for the solution.
https://docs.unity3d.com/$$anonymous$$anual/HOWTO-UI$$anonymous$$ultiResolution.html This should help you understand it :)
Your answer
Follow this Question
Related Questions
2D Colliders and OnMouseDown not working after build. 1 Answer
Build Problem: Game Closes itself 0 Answers
After upgrade Unity 5 build error 2 Answers
build not working right , script added 0 Answers
Error Building 0 Answers