Decoration class represents a purely visual object placed on a side in a RollingQuest level. Decorations do not affect gameplay — they have no collision or item logic — but they can be toggled on and off via script to create visual effects, reveal hidden scenery, or synchronise animations with level events. Scripts attached to a decoration receive it as self, and you can also retrieve decorations from a side via side.decoration or by iterating a section’s decorations.
Properties
Identity
Transform
State
Methods
enable / disable
enable() to restore it.
Type-cast helpers
Use these to narrow a generic entity reference to a concrete type. Each throws an error if the cast is invalid.DecorationData
DecorationData is the mutable representation used when constructing or modifying level data (e.g. in OnLevelLoad). It exposes the following fields:
Call
clear() to reset a DecorationData instance to empty defaults.
Usage Example
The following example shows a side script that hides all decorations tagged"hidden_deco" when the ball first rolls onto the side, then reveals them again after a two-second delay: