reanimator
This commit is contained in:
24
Runtime/Engine/Code/Animations/AnimationClipNode.cs
Normal file
24
Runtime/Engine/Code/Animations/AnimationClipNode.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user