Skip to content

Incorrect texture mapping in Progress Bar with rotated texture atlas #1839

@guardianblue

Description

@guardianblue

The bar Sprite of ProgressBar fails to map its texture under filled mode correctly when its SpriteFrame happens to be auto-rotated in the underlying sprite sheet.

Steps to reproduce:

  1. Prepare two images, one for the progress bar track and one for the bar
  2. Generate a sprite sheet, forcing the texture to be rotated (e.g. by tweaking the max width property)
  3. Create a ProgressBar and assign the sprite frames
  4. Set mode to filled
  5. Test in simulator, it should work fine
  6. Test again with mobile build, the bar would look like as if it is set as simple mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions