DragonBones / DragonBonesAS

DragonBones ActionScript Runtime
MIT License
250 stars 117 forks source link

What kind of method instead addTextureAtlas in 4.7? #78

Closed Dragosha closed 8 years ago

Dragosha commented 8 years ago

In 4.6 we can add a ready to use TextureAtlas from Starling to factory, pre-created in AssetManager, for example: factory.addTextureAtlas(assets.getTextureAtlas("MyAtlas")); in 4.7 this method was removed and added parseTextureAtlasData. But it not accept TextureAtlas.

How I can add TextureAtlas to factory?

akdcl commented 8 years ago

Hi, You can addTextureAtlas like this: factory.addTextureAtlas(StarlingTextureAtlasData.fromTextureAtlas(assets.getTextureAtlas("MyAtlas")));

Dragosha commented 8 years ago

Did you mean factory.addTextureAtlasData(StarlingTextureAtlasData.fromTextureAtlas(assets.getTextureAtlas("MyAtlas"))); ? Thanks, it works!