Latest unity, AC1.64 and AC1.65b
I have a close-up scene of a toaster with a hotspot that covers the bottom half of the screen to allow you to return to the previous view.
There is an inventory bar that appears at the bottom of the screen, over the top of the Hotspot.
On Android, when I try to choose an item from the inventory, the click is also captured by the Hotspot, so changes the view, instead of allowing me to select an item and interact with the scene.
On the Windows build, the click on the inventory is not captured by the Hotspot, and works as expected.
Is there something I should be doing with Raycast or Layers for Android, that isn't necessary on Windows?
If you need any visuals from the inspector etc, let me know what's needed and I'll attach them.
Thanks in advance.
Comments
Unity 2018.2.10f1
AC 1.65b & AC 1.64
Below is an image of the Hotspot setup, and its related action list...
I have also created two builds. One for Windows and one for Android. There were no changes made to the project between the builds.
Launch the game, and "Look At" the toaster in the corner.
Open the Inventory (small arrow at bottom right) then place the slice of bread in the toaster. To test the hotspot interaction more, try clicking the bread then right-clicking to cancel.
On the Windows build you can keep doing this consistently without any issues.
On the Android build you pickup the bread AND run the "Use" action of the "Back" Hotspot (changing your view and making it impossible to toast the bread).
Android Build
Windows Build
The Inventory is a Unity UI. Is the above enough to explain the issue? I'd like to avoid recreating an AC inventory or importing one if possible.
Many thanks
Kev
I'll be dropping in an AC Inventory next and will update soon.
I was building it with "Mouse and Keyboard" Input... changed to touchscreen and it worked.
I don't know how you have time to answer all our questions, but really glad you do.