Skip to main content
The ElementPropertyPool class provides read-only access to the custom properties defined on an entity (block, side, item, enemy, ball, decoration). Custom properties are defined in the level editor and allow designers to attach metadata to entities that scripts can read at runtime. Every entity exposes a properties field of this type.
To modify properties at design time (in level data), use ElementPropertiesData instead.

Properties

Methods

hasProperty

Checks if a property with the given name exists.

getProperty

Returns the property object with metadata.

getPropertyValue

Returns the current value of a property.

Indexer

Direct value access by name:

ElementProperty

Each property returned by getProperty() has:

ElementPropertyInfo

Usage Example

Read custom properties from a block:
Direct indexer access: