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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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