Skip to content

Instantly share code, notes, and snippets.

@munkbusiness
munkbusiness / EmoPacker.cs
Last active May 29, 2024 16:38 — forked from MattRix/EmoPacker.cs
2022 version of the EmoPacker script that creates a image for a TMP sprite asset to use. There is still some wierd issues, with files needing to be exist already, and the TMP asset is updating wierdly. Specifically instead of using metadata it now uses the new spriterects, which is the replacement.
using System.IO;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using TMPro;
using UnityEditor.U2D.Sprites;
public class EmoPacker
{