An open API service indexing awesome lists of open source software.

https://github.com/codewriter-packages/tmp-image

Script for drawing sprite from Text Mesh Pro atlases in UGUI
https://github.com/codewriter-packages/tmp-image

component textmeshpro ugui ui unity unity3d

Last synced: 10 months ago
JSON representation

Script for drawing sprite from Text Mesh Pro atlases in UGUI

Awesome Lists containing this project

README

          

# TMP-Image [![Github license](https://img.shields.io/github/license/codewriter-packages/TMP-Image.svg?style=flat-square)](#) [![Unity 2021.3](https://img.shields.io/badge/Unity-2021.3+-2296F3.svg?style=flat-square)](#) ![GitHub package.json version](https://img.shields.io/github/package-json/v/codewriter-packages/TMP-Image?style=flat-square)

## :thought_balloon: Motivation

I like the way to use sprites in the [Text Mesh Pro](https://docs.unity3d.com/Packages/com.unity.ugui@2.0) by their name (e.g. ``). 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

## :rocket: 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

## :open_book: How to Install

Library distributed as git package ([How to install package from git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html))

Git URL: `https://github.com/codewriter-packages/TMP-Image.git`

## :green_book: License

TMP-Image is [MIT licensed](./LICENSE.md).