![]() Please do not use Crop, flush position, or the trim information will be lost and you can't get back originial texture offset anymore. TexturePacker as 3 Modes: trim - which should preserve the position & size of the original crop, keep pos - which keeps the position but reduces the size - useful e.g. 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. TexturePacker has 2 crop modes in Unity - to remove transparency around the sprites which consumes memory and GPU. ![]() The following picture shows the comparison of two size modes: 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |