This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
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
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
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#

Creating a World Trigger#

To create a world trigger via UnigineEditor:

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

    Trigger Creation
  2. Place the node in the scene.

Editing a World Trigger#

In the Node tab of the Parameters window, you can adjust the following parameters of the trigger:

Node tab of the World Trigger node

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 Toggles the touch mode for the trigger on and off. With this mode on, the trigger reacts to the node at a partial contact. Otherwise, the trigger reacts only if the whole bounding box gets inside it.
Size The size of the trigger's bounding box along the X, Y, and Z axes, in units.

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