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

Input hints

How interaction work from inside

PreviousInteraction anatomyNextMore additional action hints

Last updated 1 year ago

All interactions extends from base class Interactable and should override next methods:

  • UsePrimaryActionHint()

  • GetPrimaryHintText()

  • UseSecondaryActionHint()

  • GetSecondaryHintText()

This methods determine if action script will show any hints or not. For example:

UsePrimaryActionHint() => true;
GetPrimaryHintText() => "Pick object";
UseSecondaryActionHint() => true;
GetSecondaryHintText() => "Examine";

UsePrimaryActionHint() => true;
GetPrimaryHintText() => "Interact";
UseSecondaryActionHint() => false;
GetSecondaryHintText() => default;

Also, remember: If you want that action hints to be changed, you need to call method from interaction script.

More additional action hints
UpdateHints()
Sample with both interactions
Sample with primary only interaction