Pedal
Pressure pedal that triggers when stepped on.
Introduction
Pedal is a pressure plate that reacts to weight. Step on it and it presses down, step off and it rises again. When several characters stand on it at once, the event only fires once. The Pedal component panel in the Uni editor Image The Pedal component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Pedal. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Another Way to Access
Shortcut: open the Asset Panel, go to the Device tab, Basic category, and click the Pedal block. The editor spawns a cube with Pedal already attached, ready to adjust. How to Access - the Pedal block in Asset Panel > Device > Basic
Properties
Model Enum The visual look of its two states: pressed down and raised up. Property Type Description Every property on the Pedal component.
Events
On Pedal Down Fires when the pedal changes to the pressed state. Object: the object that stepped on it On Pedal Up Fires when the pedal changes back to the raised state. Object: the object that lifted the weight Event Description Parameter Every event on the Pedal component. Each event links to its full guide, where its parameters and example live.
Commands
Pedal has no commands.
Example
A player presses a pedal to turn a light on and releases it to turn the light off. Pedal - Simple video