Humanoid Control for Unity  v3
Passer.TriggerEventHandler Class Reference

Unity Inspector

Implements input behaviour using Trigger Colliders

This can be used to define input actions which are only active when the player is within a certain area. This component requires a Collider to specify the working area of this component.

Inherits MonoBehaviour.

Public Attributes

GameObjectEventHandlers triggerHandlers
 Trigger Event Handles More...
 
ControllerEventHandlers[] leftInputEvents
 
ControllerEventHandlers[] rightInputEvents
 

Protected Member Functions

virtual void OnTriggerEnter (Collider other)
 
virtual void OnTriggerExit (Collider other)
 

Protected Attributes

bool entered = false
 

Member Data Documentation

◆ triggerHandlers

GameObjectEventHandlers Passer.TriggerEventHandler.triggerHandlers
Initial value:
= new GameObjectEventHandlers() {
label = "Trigger Event",
tooltip =
"Call functions using the trigger collider state\n" +
"Parameter: the GameObject entering the trigger",
eventTypeLabels = new string[] {
"Never",
"On Trigger Enter",
"On Trigger Exit",
"On Trigger Stay",
"On Trigger Empty",
"On Trigger Change",
"Always"
},
}

Trigger Event Handles

Let you execute function calls based on the Trigger Events

◆ leftInputEvents

ControllerEventHandlers [] Passer.TriggerEventHandler.leftInputEvents
Initial value:
= {
new ControllerEventHandlers() { label = "Left Vertical", id = 0 },
new ControllerEventHandlers() { label = "Left Horizontal", id = 1 },
new ControllerEventHandlers() { label = "Left Stick Button", id = 2 },
new ControllerEventHandlers() { label = "Left Button 1", id = 3 },
new ControllerEventHandlers() { label = "Left Button 2", id = 4 },
new ControllerEventHandlers() { label = "Left Button 3", id = 5 },
new ControllerEventHandlers() { label = "Left Button 4", id = 6 },
new ControllerEventHandlers() { label = "Left Trigger 1", id = 7 },
new ControllerEventHandlers() { label = "Left Trigger 2", id = 8 },
new ControllerEventHandlers() { label = "Left Option", id = 9 },
}

◆ rightInputEvents

ControllerEventHandlers [] Passer.TriggerEventHandler.rightInputEvents
Initial value:
= {
new ControllerEventHandlers() { label = "Right Vertical", id = 0 },
new ControllerEventHandlers() { label = "Right Horizontal", id = 1 },
new ControllerEventHandlers() { label = "Right Stick Button", id = 2 },
new ControllerEventHandlers() { label = "Right Button 1", id = 3 },
new ControllerEventHandlers() { label = "Right Button 2", id = 4 },
new ControllerEventHandlers() { label = "Right Button 3", id = 5 },
new ControllerEventHandlers() { label = "Right Button 4", id = 6 },
new ControllerEventHandlers() { label = "Right Trigger 1", id = 7 },
new ControllerEventHandlers() { label = "Right Trigger 2", id = 8 },
new ControllerEventHandlers() { label = "Right Option", id = 9 },
}

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