what's the best way to have scene based hotspots in a scene based UI menu? I am having trouble accessing the hotspots in my current set up. They don't seem to be accessible within my UI.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
For a Hotspot to be interactive regardless of where it is placed, it must be placed on the interactive (Default) layer, and given a Collider to be picked up by raycasts.
I am still having trouble with this, please see video:
https://www.dropbox.com/s/8llhco8dq226yeu/Hotspot in UI issue.mov?dl=0
In my experience, only 3D colliders can be raycasted in UI menus. A Box Collider 2D won't be detected.
You could feasibly switch your game's Camera perspective to 3D while the Menu is open, but it's a bit hacky.
I'd advise against placing Hotspots in your UI.
It is possible to detect if an item is currently selected when clicking on a UI component by reading the value of AC.KickStarter.runtimeInventory.SelectedItem inside an OnSelect function.