Hi, I’ve encountered some scenarios working with
TMXTiledMaps in which I would find useful to have a list of all layer names (and/or all the
TMXLayers) associated with a map, but I don’t see any method or public property for accessing such a list.
If I’m not the only one that needs this, could it be implemented? (I can work around that limitation, and I’m the one designing the maps on Tiled, so it’s not a big deal if it doesn’t get implemented).
I think we should add a “allLayers” function to cc.TMXTiledMap, although this function equals “this.getChildren();”.
Thanks for your suggest
- Assignee set to ludingping
Note that it would only equal
getChildren if you don’t add anything else, but sometimes it’s usefull to add other children than layers to
TMXTiledMaps (for example, I add characters, since I can work easier with the coordinate system if I put them there instead of in another layer).
Yes, I see.
Thanks for noticing.
- Status changed from New to Closed
- % Done changed from 0 to 100