Add getLayers()?
Add getLayers()?
Feature #3733 [Closed]
Hi,
I think we should add a “allLayers” function to cc.TMXTiledMap, although this function equals “this.getChildren();”.
Thanks for your suggest
David
- 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 TMXTiledMap
s (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
Status: | Closed | |
---|---|---|
Start date: | 2014-01-16 | |
Priority: | Low | |
Due date: | ||
Assignee: | ludingping | |
% Done: | 100% |
|
Category: | - | |
Target version: | - |
Hi, I’ve encountered some scenarios working with
TMXTiledMap
s in which I would find useful to have a list of all layer names (and/or all theTMXLayer
s) 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).