- Home /
Buttons don't trigger only in build
Hey, I was making a game and everything worked fine till now.
In editor the game runs completely smooth without any problems.
But in the built versions the TMP Buttons aren't triggering their events. Hovering and clicking just works, but nothing happens like starting the game. So unfortunately I can't tell wether it's only the buttons or the whole game messed up.
Switching to the newest Unity version 2020.3.14f1 did not fix it.
Thanks in advance for your help!
In a dev build I get following warnings/errors:
"The referenced script (MenuInteractions) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object 'Level Loader') is missing!
A scripted object (probably MenuInteractions?) has a different serialization layout when loading. (Read 32 bytes but expected 72 bytes) Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?".
Again this happens only in the build version. In editor everything works without any errors.
Your answer
Follow this Question
Related Questions
UI Buttons not working?!?! 1 Answer
Highlight images in buttons children 0 Answers
UI Buttons working in editor but not in mobile 0 Answers