Skip to content

Instantly share code, notes, and snippets.

View Variapolis's full-sized avatar
⌨️
Keyboarding

Vari Variapolis

⌨️
Keyboarding
View GitHub Profile
@Variapolis
Variapolis / AutoNameAnimations.cs
Created November 19, 2022 19:50 — forked from PopupAsylumUK/AutoNameAnimations.cs
Automatically renames animations on import from "Take 001" or "mixamo.com" to the name of their import, which I find more useful
using UnityEditor;
using UnityEngine;
public class AutoNameAnimations : AssetPostprocessor {
static readonly string[] renameMatches = new string[] { "Take 001", "mixamo.com" };
void OnPostprocessModel(GameObject gameObject) {
ModelImporter importer = assetImporter as ModelImporter;