Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
namespace Pathfinding {
[CustomEditor(typeof(AnimationLink))]
public class AnimationLinkEditor : Editor {
public override void OnInspectorGUI () {
DrawDefaultInspector();
var script = target as AnimationLink;
EditorGUI.BeginDisabledGroup(script.EndTransform == null);
if (GUILayout.Button("Autoposition Endpoint")) {
List<Vector3> buffer = Pathfinding.Util.ListPool<Vector3>.Claim();
Vector3 endpos;
script.CalculateOffsets(buffer, out endpos);
script.EndTransform.position = endpos;
Pathfinding.Util.ListPool<Vector3>.Release(buffer);
}
EditorGUI.EndDisabledGroup();
}
}
}