![]() ![]() ![]() To sum up this approach we get all assets on one "sheet" and the positional data and CSS classes… it seems like some additional work, but the payoff is easy to update, responsive and the mask can be even reduced to 50% size and optimized using ImageAlpha (4-32 colors for example). You can also use the PNG to create your own JPG using Photoshop (after saving the Alpha-Mask from it). It's important because the CSS is also rewritten with the JPEG path. The final usage step is to change the exporter to JPEG and re(export) and there you can set the quality. It's worth the money if you use it for commercial work (in my opinion also for fun).Īs described in the tutorial above, the PNG that Texture-Packer produces can be big… is only used to extract an alpha mask and get the packed layout. This solution requires the Pro-Version and you can give it a try by enabling it as a trial (as seen in your screenshot). After that, you can choose the exporter from the list.Set the folder to your own additional extension's folder (for custom exporter).Please do not use Crop, flush position, or the trim information will be lost and you can't get back originial texture offset anymore. 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. The crop (flush pos) should do what you're experiencing, ie the trimmed size is no longer considered as part of the texture's contentSize. 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. The only difference between trim and crop (keep pos) is that the contentSize of the texture changes, but the texture's position relative to the sprite position remains the same. 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: 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. CUSTOM This option make sure the size of the node will not be changed along with SpriteFrame, and should be managed by user himself.RAW Select this option will set the size of the node to use the original texture size, including transparent areas. ![]() You should try and massage the crop at least 3 to 4 times a day. The massaging should hopefully help break up any blockage which is causing the crop contents to remain in the crop and ferment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |