|Table of Contents|
The Slide Switch is a component that simulates a physical control switch.
The Slide Switch only works in runtime
Where to find
The Slide switch can be found under Standard Components > Slide Switch > Add Physical component.
The following inspector component will be shown:
The images below show the complete feature layout of the Slide Switch component.
The current switch state and its ID of the Slide Switch
The Prismatic Joint used in conjunction with the Slide Switch
The ID of the switch state
The Name of the switch state
Determines in combination with the Upper Weight of the previous state where the transition between the two states occurs
The Position of the Wheel Joint for the Switch State to activate
Determines in combination with the Lower Weight of the next state where the transition between the two states occurs
Executes all actions in this box when the switch state is selected
Executes all actions in this box when the switch state is no longer selected
Add new state
Creates a new switch state based on the current position of the Prismatic Joint
Use Scene Gizmo
When checked the gizmo is displayed in the scene view. The color of the gizmo can be changed with the colorfield after the checkbox
Generate Control Panel for SlideSwitch
Creates a Control Panelfor the Slide Switch
How to use
Create a new switch state and define its values