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

Analog of OnEnable and OnDisable interaction

You may need to do some actions before or after using action, like in OnEnable and OnDisable. But by doing this for all interactions, in onEnable, may slow down game. For this, there are 2 events onSubscribed and onUnsubscribed.

onSubscribed will work when interaction are caught by InteractionRaycaster, and onUnsubscribed when InteractionRaycaster lose interaction from sight

PreviousKeep action activeNextAnalog of Update

Last updated 1 year ago