Memoria.FFPR icon indicating copy to clipboard operation
Memoria.FFPR copied to clipboard

KB: Importing atlases can changes the size and position of sprites

Open Albeoris opened this issue 3 years ago • 0 comments

The problem arises when the rect of the sprite do not match the rect of the texture fragment.

For example: Sprite Rect: 48x48 Texture Rect: 35x35

Such sprites cannot be created at runtime, only in the editor. Because of this, the pivot and the size of the sprite are changed during import.

There doesn't seem to be any way to support for replacing such sprites, except for repackaging bundles.

image

Albeoris avatar Feb 12 '22 17:02 Albeoris