More additional action hints

Sometimes you may need more that only primary and secondary input for your action script. For next example, script have additional inputs for Zoom and Rotation,

For this, you need to override method GetInputHints:

public override List<InteractionHintData> GetInputHints()
{
    return new List<InteractionHintData>()
    {
        new InteractionHintData(HintType.ZOOM, "Zoom"),
        new InteractionHintData(HintType.ROTATE, "Rotate"),
    };
}

Then, you can handle your input in any mode.

If you want to add new HintType, add them in enum HintType, and then locate InteractionHintController in inspector, and add your new type and a sprite for it

Last updated