reanimator

This commit is contained in:
2025-08-08 23:37:33 +02:00
parent 369f7099ad
commit 2d06552025
10 changed files with 268 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
using UnityEngine.Animations;
using UnityEngine.Playables;
namespace RebootKit.Engine.Animations {
public class AnimationClipNode : IReAnimatorNode {
[field: SerializeField] public string Name { get; private set; }
public AnimationClip Clip;
public void Tick(float deltaTime) {
}
public IPlayable Build(PlayableGraph graph) {
AnimationClipPlayable playable = AnimationClipPlayable.Create(graph, Clip);
return playable;
}
public bool TryFindChild(string name, out IReAnimatorNode node) {
node = null;
return false;
}
}
}