Button
Trigger an action when pressed.
β
|
PERFORMANCE TIP In multiplayer Experiences, there are two layers of logic that will not communicate with each other: singleplayer [SP] and multiplayer [MP]. For best performance, only apply [MP] behaviours and components to objects that MUST be synchronised to all players (or communicate on that layer), and maximise use of the [SP] (Client Only) layer.
USAGE TIP Button behaviour has a cooldown parameter, Duration, to prevent players from spamming logic triggers. Use this when you want logic to stay active, but not be triggered excessively at once.
Common Uses
Send a message to another Object's Toggle Component to activate or deactivate its Behavior (e.g., Platform, Melee Enemy, etc) for a puzzle platformer
Apply to Assets such as info panels and trigger the NFT Details Display Component, open doors from a distance, etc.
Trigger lights and/or sound to turn on/off
Reset logic on a Multiplayer Experience
Communications
Inputs: Player Interaction (Press E) | Outputs: Send one message within a specified range |
Parameters
Options | Details |
---|---|
Message to Send - set a Message to send when players press E and interact with this Object | |
Broadcast Range - set the distance the Message will reach This parameter is visualised with a yellow circle Gizmo that adjusts as you change the value. |
Last updated