Skip to content

Script for drawing sprite from Text Mesh Pro atlases in UGUI

License

Notifications You must be signed in to change notification settings

codewriter-packages/TMP-Image

Repository files navigation

TMP-Image Github license Unity 2021.3 GitHub package.json version

💭 Motivation

I like the way to use sprites in the Text Mesh Pro by their name (e.g. <sprite name=Gold>). It would be very nice to be able to draw exactly the same sprites from the same atlases directly in UGUI. So I made a TMPImage - replacement for Image that able to do it

🚀 How to use?

Just add a TMP Image component to the GameObject and specify the sprite name, and sprite will be fetched from Text Mesh Pro and displayed. Simple

📖 How to Install

Library distributed as git package (How to install package from git URL)
Git URL: https://github.com/codewriter-packages/TMP-Image.git

📗 License

TMP-Image is MIT licensed.