
The json can come from TexturePacker for instance exported for. Please do not use Crop, flush position, or the trim information will be lost and you can't get back originial texture offset anymore. Sprite DESCRIPTION A Sprite plays an animation of a spritesheet which is a set of images. In TexturePacker before you publish your sprite sheet, please make sure you choose Trim in Trim Mode setting of Sprites section. We recommend users to use sprite sheet tools such as TexturePacker for generating sprite animation texture assets. If Trim property is set to true, it would fit animations that have no in texture offset. This way when playing sprite animation the sprite node position will not change, instead the character will move based on it's offset in original textures. We should set Sprite component's Trim property to false, and set Size Mode to RAW. In this case, all animation frames are textures with the same size and transparent areas around the character. Usually animator will use a large canvas and put character on different positions on the canvas for different animation frames. There are a lot of animator prefer to draw the moving motion in texture, commonly seen in attack animations. The following picture shows the comparison of two size modes: TexturePacker is a GUI and command line tool to create sprite sheets or. If user use Rect Transform Tool or Size property in Properties panel to modify the size of the node, the Size Mode property will be automatically set to CUSTOM. Using the HTML5 Document feature in Adobe Animate, build interfaces, animations.


Any fully transparent pixels around the image will be cropped. Once a texture is imported, the SpriteFrame asset generated with the texture will be trimmed automatically.
