Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
SensorUpdateType
Controls when a sensor recalculates its output properties. Assign this enum to the UpdateType property on any SensorBase‑derived instance (ControllerSensor, FluidForceSensor, AtmosphereSensor) to choose between automatic lazy evaluation and fully manual control.
Items
| Name | Value | Description |
|---|---|---|
| OnRead | 0 | The sensor lazily recalculates its output the next time an output property is read and the output is marked dirty. |
| Manual | 1 | The sensor never automatically recalculates its output; scripts are responsible for driving output updates. |
OnRead
The sensor lazily recalculates its output the next time an output property is read and the output is marked dirty.
| Field | Value |
|---|---|
| value | 0 |
Manual
The sensor never automatically recalculates its output; scripts are responsible for driving output updates.
| Field | Value |
|---|---|
| value | 1 |