Skip to content

Instantly share code, notes, and snippets.

@toxicFork
toxicFork / TextureAtlasSlicer.cs
Last active November 24, 2019 08:28
TextureAtlasSlicer.cs
using System;
using System.Collections.Generic;
using System.Xml;
using UnityEditor;
using UnityEngine;
public class TextureAtlasSlicer : EditorWindow {
[MenuItem("CONTEXT/TextureImporter/Slice Sprite Using XML")]
public static void SliceUsingXML(MenuCommand command)
{