This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

World Trigger

A world trigger is a cuboid shaped object, which fires callbacks when any node (collider or not) gets inside or outside of it.

A World Trigger Affecting Meshes

See also

  • WorldTrigger class to edit world triggers via UnigineScript

Creating a World Trigger

To create a world trigger via UnigineEditor:

  1. On the Menu bar, choose Create -> World -> Trigger

    Trigger Creation
  2. Place the node in the scene.

Editing a World Trigger

In the World Trigger tab of the Parameters window you can adjust the following parameters of the trigger:

World Trigger tab

Bounding Box Parameters

A set of bounding box parameters:

Edit Size Toggles the editing mode for the world trigger node on and off. When enabled, the bounding box sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle.

Touch The size of the trigger's bounding box along the X, Y and Z axes, in units.
Size Specify if the touch mode is enabled for the trigger. With this mode on, the trigger will react to the node by a partial contact. Otherwise, the trigger will react only if the whole bounding box will get inside of it.

Callbacks

A set of callbacks:

Enter Callback The name of the enter world script callback function.
Leave Callback The name of the leave world script callback function.
Last update: 2018-08-10
Build: ()