Toggle Behaviour

Turn the Behaviour of the Object on or off using Messages.

  • Allows to switch the object's behaviour on, off, or toggle on/off when a message is received

  • Includes a setting for its initial state

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 The [MP] version of this component will not communicate with Quests or [SP] behaviours or components. It can be used in singleplayer Experiences.

Common Uses

  • Make enemies peaceful until you touch their treasure

  • Grant access to new areas - turn on or off a platform, unlock a door, etc.

  • Control the player's ability to trigger certain dialogue depending on their progression in an Experience (dialogue states)



One or more on message

One or more off message

One or more toggle on/off message


Object's behaviour switches on

Object's behaviour switches off Object's behaviour switches to the opposite state



Turn ON Message - Defines the message(s) required to turn on the behaviour.

Turn OFF Message - Defines the message(s) required to turn off the behaviour.

Toggle Message - Defines the message(s) required to toggle ON/OFF the behaviour.

Initial Behaviour State - Defines if the asset Behaviour is ON (true) or OFF (false) at the start of the game.

Last updated


Copyright Β© 2012- 2023 The Sandbox. All Rights Reserved.