This page has been translated automatically.
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
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

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
Build: ()