![]() ![]() It is vital for our games.Īnother reason has to do with texture compression. What i was saying earlier is that us paper2d guys need the bi linear options. Please test the single png example i gave you and if it does not create any artifacts when using bilinear please report this as a bug because it has destroyed my game. I need to see this fixed before i go any deeper. Without it everything appears pixelated and flickers.Also some games benefit from the “soft” look.Īlso if you do not use bilinear there is another issue with unreal that makes rendering jittery. You are literally telling me to import all pngs one by one if i do not want artifacts.Īnd yes there is a reason why we need bi linear for 2d games especially when you change the FOV. ![]() If you import the single chest png that i gave you and set it to bilenear it does not create any artifacts, does it? Then why it does so on every texturepacker export? This is not standard and expected behavior. I would partially agree with you that this would be an non issue if it occurred for single sprites as well. It is for ALL sheets exported from texturepacker. Maybe keeping the texture in Sprite 2D mode while working on the project is fine but when creating your final build for shipping, it might be a good idea / last step to switch those back to default.This is not on this specific texture sheet. So once the sprite asset has been created, it is perfectly fine to switch it back to default to remove this overhead. Why would you switch the texture back to default? This is an actual performance overhead when loading these Sprite 2D textures when they contain lots of sprites. Note that doing so will lose the slicing information for this texture in the Unity Sprite Editor (last time I checked anyway) in case you need to edit these sprites. Once the sprites have been defined and the sprite asset created, you can switch the texture back to Default. Once the slicing is done, then use the context menu Assets->Create->TextMeshPRO->Sprite Asset with this texture selected. Thanks for pointing that out as a reminder and as just stated, you can import the texture that contains your sprites in Unity, then select this texture and set it to Sprite 2D with Sprite Mode Multiple and then use the Sprite Editor button to define / slice the sprites. But if that's not feasible, it'd be time consuming but you could probably manually edit the exported JSON file. TP is about $50 and super worth it, if you can swing it! I use it on every project and will happily recommend it. Hopefully this can help somebody else!)Įdit Oct 2019: It seems changing the pivot point in TexturePacker is a Pro feature. ![]() When searching for "Sprite Data Source", for Unity TMP TMPro TextMeshPro TextMesh Pro or anything, only this changelog appears that says it changed and won't work, but doesn't have much more info. (Apologies for the wordy post, but there's NO documentation for how this feature changed. (Note that when outputting the JSON file, you might have to play with the Pivot Point setting too. The Texture Atlas should be good too, but I preferred using a texture atlas output from TexturePacker using its default Unity data format. That outputs a JSON file that works with Sprite Data Source. This is important – other JSON formats didn't work, and neither the default Unity format nor Unity's JSON format worked either. ![]() To create a Sprite Data Source file, you have to set up your sprite atlas using Texture Packer, and use the JSON Array data format. None doesn't work at all, Texture Packer is designed for TexturePacker by CodeAndWeb (which is actually an awesome piece of software). There's also an "Import Format" dropdown that (for me at least) has only two options, "none" and "Texture Packer". This needs a JSON file, not txt, not a script. There's a new mandatory field in the importer called "Sprite Data Source" that requires a text file asset. Consider this post a resource for anyone else in a similar situation - I'm posting this because the documentation is hugely lacking for the new Unity TextMesh Pro update. I just spent several hours figuring out how to create/import Sprite Assets using the new TMPro sprite asset creator. Edit Mar 2020: apparently this info is out of date, I haven’t tried it myself but if you’re using a recent version of TMP as of March 2020 refer to post below (thx!) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |