Skip to main content

PhysicalButton

class PhysicalButton

Component used to create a physical button in the scene (3D).


public class PhysicalButton extends Component

— Constructors (1) —

ConstructorDescription
PhysicalButton()Creates a new instance of PhysicalButton.

— Methods (4) —

NameDescription
boolean isLocked()Returns true if the option is "Locked", returns false if not.
void setLocked(boolean isLocked)Defines whether the "Locked" option will be activated or not.
boolean isPressed()Returns true if the PhysicalButton is being pressed, returns false if not .
void press()Sets the PhysicalButton to "pressed".