Hello Adventure Creator Team,
I'm currently working on a mobile project and I would like to request an enhancement or feature that would allow me to trigger a hotspot's "Use" action based on a raycast hit or when the camera looks at the hotspot, especially when using mobile touch inputs.
What I'm looking for:
When the camera looks at a specific hotspot or a raycast hits a hotspot, it should trigger the interaction (such as the "Use" action).
This functionality should be applied to specific hotspots (configurable per hotspot) so that only designated hotspots respond to the raycast or look-at interaction.
I'm using mobile touch inputs, so the system should also support this method of interaction (i.e., allowing the player to touch the screen to "look at" or "hit" a hotspot with the raycast).
Use Case: In my game, I want certain hotspots to trigger actions like starting dialogues when the player looks at them, without needing an explicit button press or on-screen or hotspot element.
Please let me know if you need further details or clarification on how this would work in my project. I'd really appreciate any support or guidance on implementing this functionality.
Thank you!
Abbas
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If the Hotspot can be within the same raycast distance as other Hotspots, you can do this by relying on the Event Runner component's Hotspot/Select evenm which will run when a given Hotspot is selected (i.e. hovered-over by the Player)
Attach an Event Runner to the Hotspot, define a Hotspot/Select event, and assign the "Hotspot" field as itself. The ActionList you then assign it to run will then be run when the Hotspot is selected.
Hello there i have added event runner as mentioned and define Hotspot/Select event, added actionlist to event runner.
its working on tap and click but not working on gaze or when camera look at the hotspot.
Sorry, I'll need more details - what is it that's "working on tap"? The ActionList assigned in the Event Runner, or the Hotspot's Use interaction?
If you can share your AC/Unity versions, as well as screenshots of the Hotspot, the Event Runner, its ActionList, and your Settings Manager, I'll see if I can spot the issue.