Easy Interaction System
  • 👋Welcome
  • 🚀Installation
    • New Project Setup
  • Setup new scene
  • Creating new interactions
    • Interaction anatomy
      • Input hints
        • More additional action hints
        • UpdateHints
      • Keep action active
      • Analog of OnEnable and OnDisable interaction
      • Analog of Update
      • Debug active interactions
  • Suport
  • Additional Systems
    • Inventory System
    • Notification System
Powered by GitBook
On this page
  1. Creating new interactions
  2. Interaction anatomy
  3. Input hints

More additional action hints

PreviousInput hintsNextUpdateHints

Last updated 1 year ago

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