GetTriggerByIndex Function
Gets the trigger with the specified index.
Syntax
Trigger3D GetTriggerByIndex(
int index
)
Parameters
int index
0 based index of the trigger
Return value
Trigger3D
A valid trigger if the function succeeds, otherwise an invalid trigger with size (-1, -1, -1)
.
You can check if the result is valid with this syntax: if (trigger) { ... }
Remarks
Note that trigger indices change when a user removes a trigger from the list. To get a trigger by its unique ID which does not change, use GetTrigger.