So I'm trying to cycle through hotspots using the CycleHotspot input, but I don't understand what affects the order by which these hotspots are highlighted, as they seem to cycle through them randomly (at least not in the order of their placement in the scene) I'm guessing they are cycled through in the order that the hotspots were created? Is there any way I can define the order?
Also, how can I extend the time hotspots are flashed for without editing each hotspot separately through the inspector for each? Anyway to do it for all hotspots in a game? (Editing the code maybe?)
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Hotspots are detected using Unity's provided OnTrigger functions. They should be listed in the order in which they enter the "Hotspot Detector" region, but if multiple appear in the same frame it's then involving Unity so I can't say.
Not currently, but I'll consider how this may be possible. Possible by use of a new custom event.
In Highlight.cs, replace line 396's "flashHoldTime" with the float value of your choice.
That would be lovely, thanks!
Awesome, thank you!
Just curious. Did this control of order of cycled hotspots ever happen?
Yes - the List of Hotspot objects can be modified by hooking into the OnModifyHotspotDetectorCollection custom event:
Man I am having a tough go at this. I want to order my hotspots from left to right in the scene. Say furthest left is 0 in the list and furthest right is 5 out of 5. I cannot seem to rap my head around how to implement this. Seems simple enough but I can not get it. Sorry to be such a nuisance. 😖
This should do it:
She's workin. Thanks so much for the effort. I never would have got that one! 🎊
Happy to help, @Mundash, and reviews are always welcome.