Pressure Pad

Checked with version: 2017.3

-

Difficulty: Beginner

The pressure pad is automatically set up to detect the player walking on to it, it will light up and play a sound. You can connect the pressure pad to trigger events like opening a door.

  • Activation Type: How the button is activated. The option below will change depending on this setting.

    • Item Count: The amount of objects on the pressure pad to activate it.

    • Mass: The weight of an object required to activate the pad.

  • Required Count: The required number of items for the pad to trigger the Event in On Pressed & On Release. This changes to Required Mass if Activation Type is changed.

  • Deactivated Box Sprite: (Optional) The sprite to change to, when the platform is not pressed. Only needed if the Boxes option has a Sprite Renderer

  • Activated Box Sprite: (Optional)The sprite to change to, when the platform is pressed. Only needed if the Boxes option has a Sprite Renderer

  • Boxes: (Optional) A list of boxes expected to be pushed onto the PressurePad, when they are pushed on, the sprites will change to those in Deactivated Box Sprite and Activated Box Sprite.

  • On Pressed (): Events that happen when the Pressure Pad is pressed, this is dependant on the correct Required Count or Required Mass

  • On Release (): Events that happen when the Pressure Pad is released, this is dependant on the correct Required Count or Required Mass

Related tutorials