Skip to content

Handling multi-resolution textures with addTextureAtlasData #87

Description

@loksland

I am using addTextureAtlasData to load texture atlases from the Starling assetManager:

factory.addTextureAtlasData(StarlingTextureAtlasData.fromTextureAtlas(assets.getTextureAtlas('anim')), 'anim');

The scale of the textures that are rendered is not right as the textures are a different scale to those used to configure the DragonBones project. This is because I need to support multiple-resolutions.

What is the best way to implement asset scaling through this call?

factory.scaleForTexture seems to have no effect and I don't want to use the factory.parseTextureAtlasData method in this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions