Skip to content

Instantly share code, notes, and snippets.

@kadaxo
kadaxo / BatchSpriteAssetCreator.cs
Last active May 7, 2025 16:42
Unity Editor script to batch create TMP Sprite Assets from selected textures and automatically link subsequent assets as fallbacks to the first.
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
using TMPro;
using TMPro.EditorUtilities;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public static class BatchSpriteAssetCreator