VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
Interactable Class Referenceabstract

Abstract Class that defines functions for interactions. More...

Inheritance diagram for Interactable:
Collaboration diagram for Interactable:

Data Fields

System.Action OnInteractionEnter
System.Action OnInteractionStay
System.Action OnFocusEnter
System.Action OnFocusStay
System.Action OnFocusExit
System.Action OnInteractionExecuted
System.Action OnInteractionExit

Detailed Description

Abstract Class that defines functions for interactions.

Field Documentation

◆ OnFocusEnter

System.Action Interactable.OnFocusEnter

Executes Once

Will execute if the object is the closest to the player

◆ OnFocusExit

System.Action Interactable.OnFocusExit

Executes Once

Will execute when the object no longer is the closest to the player

◆ OnFocusStay

System.Action Interactable.OnFocusStay

Executes every frame if on range

Will run if the object is the closest to the player on the frame

◆ OnInteractionEnter

System.Action Interactable.OnInteractionEnter

Executes Once

Will trigger only once when the player enters the range of the interactable

◆ OnInteractionExecuted

System.Action Interactable.OnInteractionExecuted

Executes Per Input

Once the player hits the interaction key, this will execute

◆ OnInteractionExit

System.Action Interactable.OnInteractionExit

Executes Once

Will execute when the player interaction radious no longer reaches the object

◆ OnInteractionStay

System.Action Interactable.OnInteractionStay

Executes every frame if on range

Will run if the player interaction radius is in range


The documentation for this class was generated from the following file: