Skip to content

Distinguish default properties and custom properties #202

@Python-ZZY

Description

@Python-ZZY

I believe it's necessary to add a dedicated method for retrieving an object's custom properties. When I attempt to access the properties, I get not only its custom properties but also the tile's inherent attributes (such as id, source, trans, width, etc.), all mixed together in the properties dictionary. After all, the custom properties supported by an object usually vary, and developers often define these properties in the Tiled map file before directly passing them to the corresponding Python class via ​**​object.properties. Attributes like id and source are often unnecessary in this context.

In addition, I really hope pytmx can support templates. This issue has been brought up by others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions