SensorBase
An abstract class for various sensor instance types.
This class is not creatable. Instances of this class cannot be created with Instance.new.
Memory category | Instances |
---|
Member index 3
Description
A SensorBase is an instance that, when parented to a BasePart, outputs additional data about the world around that part. This data is presented in the sensor's "output" property category. Often, other systems will consume the sensor's output data.
History 6
- 574 Change Tags of Sense from [] to [Deprecated]
- 573 Change ReturnType of Sense from void to null
- 565 Add OnSensorOutputChanged
- 565 Add Sense
- 565 Add UpdateType
- 565 Add SensorBase
Members 3
OnSensorOutputChanged
Parameters (0) | ||
---|---|---|
No parameters. |
Thread safety | Unsafe |
---|
History 1
Sense
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
This function is deprecated. It exists only for backward compatibility, and should not be used for new work.
Thread safety | Unsafe |
---|
UpdateType
Type | Default | |
---|---|---|
SensorUpdateType |
Determines how the sensor will update its output data.
With SensorUpdateType.OnRead, internal sensor logic is run so that the output properties are always up to date. In this mode, the sensor will only run if you read the properties and they are currently outdated.
With SensorUpdateType.Manual, the output properties will never change. Instead, you can write your own scripts to set the output properties as you like.
Thread safety | ReadSafe |
---|---|
Category | Settings |
Loaded/Saved | true |
History 1
- 565 Add UpdateType