πŸŸͺ Destructure Object

πŸŸͺ Destructure Object


Destructure Object


The Destructure Object block lets you pull out every property of an Object variable at once, each to its own output, instead of chaining several "Get from Object" blocks.


Imagine a player record that holds a name, a score and a level all together: instead of adding one "Get from Object" block per piece of information, a single Destructure Object block makes all of them appear at once, ready to be wired wherever you need them.


πŸ“₯ Inputs


  • object (Object): The Object variable to break apart. As soon as it is connected, each of its properties automatically gets its own output on the block β€” there is nothing else to configure.


πŸ“€ Outputs


  • (Dynamic outputs): One output per property found in the connected object, named after that property and holding its value.


πŸ’‘ Example


Scenario: Extracting name, score and level from a player record in one step


  1. A player object contains {"name": "Alice", "score": 1200, "level": 5}.
  2. That player object is connected to the object input of a Destructure Object block.
  3. Three outputs, name, score and level, automatically appear on the block, ready to be wired separately into the rest of the graph β€” without having to ask for them one by one.


βš™οΈ Technical Details


  • Internal ID: destructureObject
  • No flow points: unlike most blocks, this one has no "in"/"out" point to connect in the story's flow. It is a pure value transformer β€” other blocks read its outputs directly.
  • Dynamic output generation: outputs are created automatically from whatever properties actually exist in the connected object (unlike the "Decode JSON" block, there is no schema or list of keys to fill in by hand).
  • Object that changes shape: if the connected object later loses a property, the matching output can return an empty value (null) for any block still wired to it.



Documented version: v1

Updated on: 06/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!