Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

loading multiple atlases


Kristiyan
 Share

Recommended Posts

Hello everyone!
I want to ask, how can i check what each atlas contains(data) after loading multiple atlases ?

 

  game.load.atlas('atlas', 'mg-game-objects-0.png', 'mg-game-objects-0.json');
  game.load.atlas('atlas2','roullet/roullet.png' ,'roullet/roullet_atlas.json' );

 

Link to comment
Share on other sites

Do you mean from within your code? You'd have to  extract the filenames that are inside your JSON. Doing that would depend on how the JSON is structured. 

Externally, you can just open your JSON file and look at it and the filenames will match your filenames of the files that went  into the atlas. 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...