Hi, my game is being ported to mobile and I am wondering if anyone has implemented two finger swipe for highlighting hotspots or how I would go about it? Thanks all!
Multi-swipe detection would require a custom script, but as that in itself doesn't involve AC you should be able to find plenty of resources on the Unity forums, etc.
Once you have a script that detects swipes in the way that you're looking to, though, you can have it run this function to highlight all Hotspots in the scene:
public void HighlightAllHotspots ()
{
if (!AC.KickStarter.stateHandler.IsInGameplay ()) return;
foreach (AC.Hotspot hotspot in AC.KickStarter.stateHandler.Hotspots)
{
if (hotspot.highlight && hotspot.IsOn ())
{
hotspot.highlight.Flash ();
}
}
}
Comments
Multi-swipe detection would require a custom script, but as that in itself doesn't involve AC you should be able to find plenty of resources on the Unity forums, etc.
Once you have a script that detects swipes in the way that you're looking to, though, you can have it run this function to highlight all Hotspots in the scene:
Thanks CHris!