Skip to content

Instantly share code, notes, and snippets.

View Variapolis's full-sized avatar
⌨️
Keyboarding

Vari Variapolis

⌨️
Keyboarding
View GitHub Profile
@PopupAsylumUK
PopupAsylumUK / AutoNameAnimations.cs
Last active January 3, 2024 22:49
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;