Skip to content

Layers or ObjectGroup In Group #70

@TheDudeAlexIs

Description

@TheDudeAlexIs

Hi,
First of all thank you very much to you and all the people who contributed to this project.
I am a beginner developer and I have searched everywhere but I can't find a way to load objectsGroup or Layers that are in a group on Tiled.

I tried to look in your code and add this into the map.cs

foreach (var e in xMap.Elements("group").Elements("layer"))
Layers.Add(new TmxLayer(e, Width, Height));
foreach (var e in xMap.Elements("group").Elements("objectgroup"))
ObjectGroups.Add(new TmxObjectGroup(e));

And it's working \o/

I don't know if it's the right way to do it or if it's already possible and i missed the process.

Thanks again for your work
Br

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