Input hints

How interaction work from inside

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:

Sample with both interactions
UsePrimaryActionHint() => true;
GetPrimaryHintText() => "Pick object";
UseSecondaryActionHint() => true;
GetSecondaryHintText() => "Examine";

Sample with primary only interaction
UsePrimaryActionHint() => true;
GetPrimaryHintText() => "Interact";
UseSecondaryActionHint() => false;
GetSecondaryHintText() => default;

More additional action hints

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

Last updated