Dialogue System not displaying dialogue on mobile only
Posted: Thu May 26, 2022 11:50 am
Hi,
I setup my scene so that when the Player goes close to an NPC, a "Talk" button shows up (I followed the instructions from this post https://www.pixelcrushers.com/phpbb/vie ... php?t=1945).
If the player presses the Talk button, it calls the ProximitySelector.UseCurrentSelection and disactivate itself and displays the dialogue. It works very well when I run it in the Unity Player and shows the dialogue, but when I build it run it on a mobile (Android) device, I can see the Talk button and the "(spacebar to interact)" text on the top of the screen appearing, but when the player presses the Talk button, it doesn't show the dialogue. I even forced the dialogue to be triggered via code with player.GetComponent<ProximitySelector>().UseCurrentSelection() just to verify that it's not the button on mobile that is the problem but it still doesn't trigger the dialogue but works well inside the Unity Player. Everything related to Quest Machine works well both in the Unity Player and on Android.
I was wondering where should I start for debugging why it doesn't work on mobile? Thanks!
I setup my scene so that when the Player goes close to an NPC, a "Talk" button shows up (I followed the instructions from this post https://www.pixelcrushers.com/phpbb/vie ... php?t=1945).
If the player presses the Talk button, it calls the ProximitySelector.UseCurrentSelection and disactivate itself and displays the dialogue. It works very well when I run it in the Unity Player and shows the dialogue, but when I build it run it on a mobile (Android) device, I can see the Talk button and the "(spacebar to interact)" text on the top of the screen appearing, but when the player presses the Talk button, it doesn't show the dialogue. I even forced the dialogue to be triggered via code with player.GetComponent<ProximitySelector>().UseCurrentSelection() just to verify that it's not the button on mobile that is the problem but it still doesn't trigger the dialogue but works well inside the Unity Player. Everything related to Quest Machine works well both in the Unity Player and on Android.
I was wondering where should I start for debugging why it doesn't work on mobile? Thanks!