PixelCrushers.DialogueSystem.RangeTrigger Class Reference

This component activates game objects and enables components when it receives OnTriggerEnter and the conditions are true, and deactivates/disables when it receives OnTriggerExit and the conditions are true. More...

Inheritance diagram for PixelCrushers.DialogueSystem.RangeTrigger:
Collaboration diagram for PixelCrushers.DialogueSystem.RangeTrigger:

Public Member Functions

void OnTriggerEnter (Collider other)
 Activates the target game objects and components if the condition is true. More...
 
void OnTriggerExit (Collider other)
 Deactivates the target game objects and components if the condition is true. More...
 
void OnTriggerEnter2D (Collider2D other)
 Activates the target game objects and components if the condition is true. More...
 
void OnTriggerExit2D (Collider2D other)
 Deactivates the target game objects and components if the condition is true. More...
 

Public Attributes

Condition condition
 The condition that must be true in order to activate/deactivate target game objects and components when the trigger is entered or exited. More...
 
GameObject[] gameObjects
 The game objects to affect. More...
 
Component[] components
 The components to affect. More...
 
UnityEvent onEnter = new UnityEvent()
 
UnityEvent onExit = new UnityEvent()
 

Detailed Description

This component activates game objects and enables components when it receives OnTriggerEnter and the conditions are true, and deactivates/disables when it receives OnTriggerExit and the conditions are true.

Member Function Documentation

◆ OnTriggerEnter()

void PixelCrushers.DialogueSystem.RangeTrigger.OnTriggerEnter ( Collider  other)

Activates the target game objects and components if the condition is true.

Parameters
otherThe collider that entered the trigger.

◆ OnTriggerEnter2D()

void PixelCrushers.DialogueSystem.RangeTrigger.OnTriggerEnter2D ( Collider2D  other)

Activates the target game objects and components if the condition is true.

Parameters
otherThe 2D collider that entered the trigger.

◆ OnTriggerExit()

void PixelCrushers.DialogueSystem.RangeTrigger.OnTriggerExit ( Collider  other)

Deactivates the target game objects and components if the condition is true.

Parameters
otherThe collider that exited the trigger.

◆ OnTriggerExit2D()

void PixelCrushers.DialogueSystem.RangeTrigger.OnTriggerExit2D ( Collider2D  other)

Deactivates the target game objects and components if the condition is true.

Parameters
otherThe 2D collider that exited the trigger.

Member Data Documentation

◆ components

Component [] PixelCrushers.DialogueSystem.RangeTrigger.components

The components to affect.

◆ condition

Condition PixelCrushers.DialogueSystem.RangeTrigger.condition

The condition that must be true in order to activate/deactivate target game objects and components when the trigger is entered or exited.

◆ gameObjects

GameObject [] PixelCrushers.DialogueSystem.RangeTrigger.gameObjects

The game objects to affect.

◆ onEnter

UnityEvent PixelCrushers.DialogueSystem.RangeTrigger.onEnter = new UnityEvent()

◆ onExit

UnityEvent PixelCrushers.DialogueSystem.RangeTrigger.onExit = new UnityEvent()

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