Home

Awesome

Unity TMP Sprite Asset Creator

TMPSpriteAsset Creator是一个编辑器工具,用于简化Unity中TMPSpriteAsset的创建过程。它可以快速选择文件夹并一键生成TMPSpriteAsset,无需使用任何外部工具。

安装说明

通过 Unity Package Manager安装

<details><summary>通过 Unity Package Manager安装的步骤</summary>

手动安装

<details><summary>手动安装的步骤</summary>

使用方法

  1. 准备sprite图片,放入文件夹;

sprites in folder

  1. 创建TMPSpriteAsset时,有两种方法。第一种是创建一个配置文件(TMPSpriteAssetConfig);

create config asset

  1. 在新建的配置文件中,指定存放sprite的文件夹,并按需修改参数,然后点击“创建”,即可生成。生成的文件默认会存放在与sprite文件夹同级的目录。使用配置文件的方法,便于后续更新和管理TMPSpriteAsset;

create from config asset

  1. 另一种方法是直接从编辑器窗口(TMPSpriteAssetCreator)创建;

open creator window

  1. 在打开的窗口中,指定存放sprite的文件夹,并按需修改参数,然后点击“创建”,即可生成。生成的文件默认会存放在与sprite文件夹同级的目录。这种方法适合一次性地创建TMPSpriteAsset;

create from creator window

  1. 在工程中使用创建的TMPSpriteAsset资产;

result

许可证

本项目采用 MIT 许可证。


Unity TMP Sprite Asset Creator

TMPSpriteAsset Creator is an editor tool designed to simplify the creation of TMPSpriteAssets in Unity. It allows you to quickly select a folder and generate a TMPSpriteAsset with a single click, without the need for any external tools.

Installation

Via the Unity Package Manager

<details><summary>Steps for installing via the Unity Package Manager</summary>

Manual Installation

<details><summary>Steps for manual installation</summary>

How to Use

  1. Prepare your sprite images and place them in a folder;

sprites in folder

  1. There are two ways to create a TMPSpriteAsset. The first is to create a configuration file (TMPSpriteAssetConfig);

create config asset

  1. In the newly created configuration file, specify the folder containing the sprites and modify the parameters as needed, then click "Create". The generated file will by default be stored in a directory at the same level as the sprite folder. Using the configuration file method facilitates future updates and management of TMPSpriteAsset;

create from config asset

  1. Another method is to create directly from the editor window (TMPSpriteAssetCreator);

open creator window

  1. In the opened window, specify the folder containing the sprites and modify the parameters as needed, then click "Create". The generated files will by default be stored in a directory at the same level as the sprite folder. This method is suitable for creating a TMPSpriteAsset on a one-time basis;

create from creator window

  1. Use the created TMPSpriteAsset within your project;

result

License

This project is licensed under the MIT License.