Skip to content

Instantly share code, notes, and snippets.

View janisgitendorfs's full-sized avatar

Jānis Gitendorfs janisgitendorfs

View GitHub Profile
@janisgitendorfs
janisgitendorfs / AutoSpriteSlicer.cs
Last active October 17, 2023 06:33
UNITY sprite auto slicer. Put into any Editor/ directory. Use it in combination with Presets/PresetManager for importer settings.
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
public class AutoSpriteSlicer : AssetPostprocessor
{
private const string PathTrigger = "_AnimationSheet";