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...
|
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...
|
|
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.
◆ OnTriggerEnter()
void PixelCrushers.DialogueSystem.RangeTrigger.OnTriggerEnter |
( |
Collider |
other | ) |
|
Activates the target game objects and components if the condition is true.
- Parameters
-
other | The 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
-
other | The 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
-
other | The 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
-
other | The 2D collider that exited the trigger. |
◆ 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:
- D:/Documents/Unity Projects/Dialogue System/Dev/Release/Assets/Dialogue System/Scripts/Supplemental/Utility/RangeTrigger.cs