Forum rules - please read before posting.

Two finger swipe for highlight hotspots

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!

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:

    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 ();
            }
        }
    }
    
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.