Pressure Pad

Vérifié avec version: 2017.3

-

Difficulté: Débutant

The pressure pad is automatically set up so that when the player walks on it, it lights up and plays 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 changes depending on this setting.

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

    • Mass: The weight of a GameObject 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 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

Tutoriels apparentés