Push Button
The push button component is a scripted component that implements a virtual push button. The push button I/O contains a single boolean state signal.
The state of the push button can be toggled by clicking on the graphics mesh of the attached entity, when you are in navigate mode. The direction and distance properties specify how the button should move when pressed. The button will move in the specified direction by the specified distance when state is set to true
.
Properties
The push button component properties that are accessible through the inspector.
Type
The push button type is one of the following:
- Toggle - The push button’s state is toggled when clicking on the button in navigate mode.
- Momentary - The push button’s state is set to
true
whilst the button is pressed in navigate mode, then set tofalse
once the button is released.
Direction
The direction the push button’s entity should move.
Distance
The distance the push button’s entity should move.
State
Whether the push button is active.
IO
The IO signals provided by the push button.
state
Whether the push button is active.