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

Keep action active

InteractionRaycaster subscribes to interaction when looks at it, and unsubscribe when it disappear from center of screen. But, what to do if you want to keep action on, based on some conditions?

In this case, you can use IsUnsubscribeBlocked()

public override bool IsUnsubscribeBlocked() => holdState == HoldState.Holding;

If unsubscribe is blocked (by this method) InteractionRaycaster will not unsubscribe this action, and you can unsubscribe it yourself by calling Unsubscribe().

PreviousUpdateHintsNextAnalog of OnEnable and OnDisable interaction

Last updated 1 year ago