Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes

NodeTrigger Class

Interface for node trigger handling. See also the UnigineScript analog.

To use this class, include the UnigineNodeTrigger.h file.

NodeTrigger Class

Members


NodeTrigger ()

Constructor. Creates a new trigger node.

void setPositionCallback (CallbackBase * callback)

Sets a pointer to a callback to be fired when the trigger node has been changed.

Arguments

  • CallbackBase * callback - Callback pointer. The callback arguments must be (NodeTriggerPtr,...).

const char * getPositionCallbackName ()

Returns the name of callback function to be fired on changing the trigger node position. This function is set by using the setPositionCallbackName() function.

Return value

World script function name.

void setPositionCallbackName (const char * name)

Sets a callback function to be fired when the trigger node position has been changed. This function should take a NodeTrigger, which fires the callback, as the first argument.

Arguments

  • const char * name - World script function name.

const char * getEnabledCallbackName ()

Returns the name of callback function to be fired on enabling the trigger node. This function is set by using the setEnabledCallbackName() function.

Return value

World script function name.

void setEnabledCallback (CallbackBase * callback)

Sets a pointer to a callback to be fired when the trigger node is enabled.

Arguments

  • CallbackBase * callback - Callback pointer. The callback arguments must be (NodeTriggerPtr,...).

void setEnabledCallbackName (const char * name)

Sets a callback function to be fired when the trigger node is enabled. This function should take a NodeTrigger, which fires the callback, as the first argument.

Arguments

  • const char * name - World script function name.
Last update: 2017-07-03