init
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Animations.Rigging;
|
||||
|
||||
namespace VOID.Generic.Objects.Unit.Animations.Helpers
|
||||
{
|
||||
public class ExtractTransformConstraintJobBinder : AnimationJobBinder<
|
||||
ExtractTransformConstraintJob,
|
||||
ExtractTransformConstraintData>
|
||||
{
|
||||
public override ExtractTransformConstraintJob Create(Animator animator,
|
||||
ref ExtractTransformConstraintData data, Component component)
|
||||
{
|
||||
return new ExtractTransformConstraintJob
|
||||
{
|
||||
bone = ReadWriteTransformHandle.Bind(animator, data.bone),
|
||||
position = Vector3Property.Bind(animator, component, "m_Data." + nameof(data.position)),
|
||||
rotation = Vector4Property.Bind(animator, component, "m_Data." + nameof(data.rotation))
|
||||
};
|
||||
}
|
||||
|
||||
public override void Destroy(ExtractTransformConstraintJob job)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user