Skip to content

Instantly share code, notes, and snippets.

@der-hugo
der-hugo / AnimatorRenameDialogue.cs
Last active March 31, 2022 20:32
Allows safe renaming of objects nested under / animated by an Animator without breaking the AnimationClips
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
/// <summary>
/// Dialogue that allows to rename objects in the Hierarchy of an <see cref="Animator"/> without breaking the AnimationClip bindings
/// </summary>