24 lines
666 B
C#
24 lines
666 B
C#
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;
|
|
}
|
|
}
|
|
} |