Click or drag to resize

Sensor

Sensor

The event trigger in the scene.

For a good overview of sensors, you can take a look at the 'Sensors.scene' file, which can be found in 'Assets\Samples\Starter Content\Scenes'.

Screenshot999999406.png
Overview

The sensor allows you to select scene objects by a given volume or ray.

The parameter 'Source Data' indicates what type of objects will be determined: scene objects or physical bodies.

In order to see which objects the sensor has selected, you need to enable the 'Display Objects' parameter.

Properties
Name Description
Source Data What kind of data is used as a source of events.
Shape The shape of the trigger.
Ray Target The target by which the sensor ray will trigger.
Convex Sweep Target The end point of the sensor in Convex Sweep mode.
Mode The recognition mode of the sensor.
Filter By Type The type of objects that sensor will recognize.
Physics Filter Group The group of physical objects that sensor will recognize.
Physics Filter Mask The mask of physical objects that sensor will recognize.
Ignore Sensors Whether the sensor is ignoring other sensors.
When Update The update case mode of the sensor.
Display Color The display color of the sensor.
Display Objects Whether to draw gizmos on the objects recognized by the sensor.
Display Objects Color The color of the recognized object gizmos.
Objects List of objects recognized by the sensor.
See also
Sound SourceCurve In Space