Extracted Sprites are offset when importing a non-power of two sprite sheet, padding it to a power a two mode, and then using the extract function.
You can see this offset clipping of the extracted sprites if you change the already extracted sprites texture sample to Pad to Power of Two mode.
I am not sure if this is the expected behavior when extracting sprites from a padded texture, but it seems like it should account for the padding and either ask you to re-extract after padding, or simply auto-correct itself?
I was able to reproduce this in the binary releases:
4.8.3 - 2634408
4.9.2 - 2707645
4.10 - 2718072
1. In any project, import the 'spritesheet-demo.png' attached.
2. Right click on the imported texture and select Sprite Actions > Extract Sprites.
3. Click the extract option within the preview prompt.
4. Observe how the sprites are extracted correctly.
5. Open the re-open the sprite sheet texture sample and set it to either Padding to Power of Two option.
6. Notice how the extracted sprites have shifted and are now sampled incorrectly.
Note This is also reproducible if you pad the texture before extracting the sprites.
Head over to the existing Questions & Answers thread and let us know what's up.
6 |
Component | UE - Gameplay - Paper2D |
---|---|
Affects Versions | 4.8.3, 4.9.2, 4.10 |
Created | Oct 12, 2015 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |