[Solved] Windows Phone 8.1: GUI Button OnClick not working?

I’m currently trying to build my game on windows phone 8.1. The game runs fine under Windows Desktop, Android and Web plugin and uses the vanilla Unity GUI with panels, buttons, etc.

However when I build for windows phone 8.1 my GUI buttons aren’t working anymore. Regular touches on the screen that control the player character are still working as intended.

I made a small simple example game (see attachment) that only has one button that changes a text control on the screen, this does not work for me on windows phone 8.1 as well but runs fine in the Unity editor.

On windows phone 8 everything seems to work as intended. I’m Using Unity Unity 5.1.1f1 (64-bit) and I’m testing the game in the emulator so far, physical device is on its way. =)

Can anybody please confirm that this doesn’t work on windows phone 8.1? Or am I missing something here?

2196248–145760–WPTestGUI.zip (654 KB)

Try to disable or remove desktop input module. If you are targetting only phones, it should be disabled.
I haven’t tried emulator, but on regular Windows Store Apps both desktop and touch input modules can get activated, and desktop module doesn’t handle atouches well (that’s a known issue).

Thanks for the quick reply! I tried to disable and remove the standard input module, but no luck so far. If this is a known issue with the input modules, I should be able to find something on the net, so far I only tried searching around the button / gui / Onclick event. If I’m able to find something, I will post it here as well.

If anybody else has already successfully used the vanilla GUI with a button in the emulator whilst targeting windows phone 8.1 please let me know with a short reply. =)

I think I remember such an issue from a long time ago. The issue existed on the emulator only, so it took us a long time to notice (we don’t really test internally on emulators). I’ll ask our QA to try to reproduce it on both physical device and emulator, and I’ll let you know of the results.

Wow, thanks a lot this would be really helpful since I have made no progress here so far! If it is just an emulation issue I could continue developing on a physical device once I have it.

Argh, I just realised I forgot to tell you one important thing: I currently develop in a virtual environment (Vmware) since my main PC has still windows 7 installed and I was reluctant to install a new OS with the official release of Windows 10 around the corner. Maybe this is cause of the issue, however the touch inputs worked flawlessly in the emulator when targeting windows phone 8.

Stop the presses: The physical device has arrived, and the GUI works as expected on a real windows phone. I therefore assume this is a problem with virtualization / emulation, not with the unity player itself.

It appears that this is a known bug: Unity Issue Tracker - Input is not registered on emulator

Any solution to this problem?
I am experiencing this
with Unity 5.3.3
and Visual Studio 2015

Test on a real device.

1 Like

I have this bug on Unity 5.4.

I only have Win10 devices for testing. I need the emulator for Testing on Windows 8.1 devices.

It’s not a Unity bug, the bug is in emulator itself, so it’s very doubtful it will be ever fixed.