HomeGuides
HomeGuidesLearn about the Immerse SDK installerLog In

Physical Buttons

Physical Buttons can be used to allow users to interact with your scene by pressing a button with your controller.

773

The default setup for the physical button

Description
AxisThe axis the button will move on when pressed
LimitHow much the button can be pressed
Activation pointThe point at which the button is considered pressed. This is a normalised value where 0 is not pressed and 1 is at the limit.
Reset PointThe point at which the button is considered released. This is a normalised value where 0 is not pressed and 1 is at the limit.
Frequency & DampingThese settings adjust how the button reacts to being pressed.
Event FilterWhich avatars to send events for when pressed.
EventsOn Press - Triggered when the button is pressed in to the activation point
On Release - Triggered when the button is released past the reset point
691

Example Button

Creating A Physical Button

The Interaction package comes with a prefab to help speed up creation of your button, this can be found in GameObject > Create Other > Immerse > Interaction > Prefabs > Button This will create a button that you can use as a base for your own button.

Alternatively the PhysicalButton component can be added to your GameObject in the component menu Immerse > Interaction > Interactable > Physical Button