Bugged UI in Windows Build

so long story short a simple button added through the editor and an attached function for OnClick(). This works fine in editor and even in webplayer. it however fails to register onClick() with the Windows build. infact no UI elements react to clicks in windows build.

this is with 5.3.2

known issue or setting im missing?

Hi there,

I just did some buttons on 5.3.2p1 and tested/built on Windows 10 - no problems.

Maybe it’s something else, I only had very simple setup.

EDIT: I had onClick’s assigned from both Inspector and code, both worked fine.

Same here. I work predominately in Windows and have never had an issue with events linking up.

Are you able to share a sample project that exhibits this behaviour?

yeah, its just my ggj2016 project im trying to fix post jam.

heres the repository. GitHub - catchthefloaty/GGJ2016

the button in particular is the Reset button in the top left. itll change color from a hover event… but the click event wont exist. in the windows build

touchscript was the culprit. fixed it actually. thanks

1 Like

catchthefloaty:
Maybe you have some element (transparent) that can block UI clicks (Canvas Group component in use) and in editor it’s not overlapping your buttons but on different pixel resolution, it starts to cover your screen.

Or maybe you have some platform specific code that prevents your code from running.

It’s not possible to say for sure, I’ve no idea what your scene setup looks like.