Tags

A key-value pair object that defines the entity.

🚧

Deprecated. Tags are part of the Levels API and are deprecated in favor of the Floors API. Query floors with UnitMap.floors() instead.

Tags.only([keys])

Get the Tags on the entity that only match the given keys.

Arguments

ArgumentsTypeDefault ValuesDescription
keysArrayundefinedThe keys to filter by

Returns

An object containing the desired Tags.

Tags.except([keys])

Get the Tags on the entity that do not match the given keys.

Arguments

ArgumentsTypeDefault ValueDescription
keysArrayundefinedThe keys to filter by

Returns

An object containing the desired Tags exceptions.

Tags.all()

Get all Tags on the entity.

Returns

An object containing all Tags.


What’s Next