Forum rules - please read before posting.

iOS problem, hotspots under menus prevents menu from working

I just compiled a version of my game for the iPad, and discovered a problem that I haven't noticed before. 

If a hotspot is below my inventory item, it always overrides any menu items. This means you can't select/interact with items in the inventory if a hotspot is underneath it. This only happens on iOS - in the editor the menu takes precedence over any hotspots and everything works well.

I'm using AC's standard menu system and all hotspots are just on an untagged default layer.

Is there a way to force the menu to always stay on top on iOS? I've tried upping the GUI depth value, but there's no difference.

I'm on latest AC/Unity.

Comments

  • The menu system should always take precedence over hotspots - and there's nothing iOS specific to make it otherwise.  Could this be an issue of the Menu's size?

    Just for clarity of the issue, try making the Inventory much bigger so that it covers more space - does then tapping further from the border prevent this from happening?
  • edited March 2016
    I just tried with a bigger menu, same thing happening. Seems like touches pass right through the menu, ie you can't drag any object in the inventory as the hotspots' action below is triggered instantly.

    Edit: Just wonder if this has anything with my reported issue of hotspots sometimes not triggering when at zero on the Z-axis?
  • I think I see the issue - I made a change to the ordering of update calls to fix another bug, and it's likely had this knock-on effect.

    Open up StateHandler.cs, and uncomment lines 272-275, and comment lines 305-308.  If that fixes it for you, I'll have to find a new workaround.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.