您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
54 行
1.4 KiB
54 行
1.4 KiB
using System.Collections.Generic;
|
|
using Unity.Collections;
|
|
|
|
namespace UnityEngine.Animations.Rigging
|
|
{
|
|
using Experimental.Animations;
|
|
|
|
[Unity.Burst.BurstCompile]
|
|
public struct TwistChainStep0Job : IWeightedAnimationJob
|
|
{
|
|
public FloatProperty jobWeight { get; set; }
|
|
|
|
public void ProcessRootMotion(AnimationStream stream) {}
|
|
|
|
public void ProcessAnimation(AnimationStream stream) {}
|
|
}
|
|
|
|
[System.Serializable]
|
|
public struct TwistChainStep0Data : IAnimationJobData
|
|
{
|
|
bool IAnimationJobData.IsValid() => true;
|
|
|
|
void IAnimationJobData.SetDefaultValues()
|
|
{
|
|
}
|
|
}
|
|
|
|
public class TwistChainStep0JobBinder : AnimationJobBinder<TwistChainStep0Job, TwistChainStep0Data>
|
|
{
|
|
public override TwistChainStep0Job Create(Animator animator, ref TwistChainStep0Data data, Component component)
|
|
{
|
|
// Build Job.
|
|
var job = new TwistChainStep0Job();
|
|
return job;
|
|
}
|
|
|
|
public override void Destroy(TwistChainStep0Job job)
|
|
{
|
|
}
|
|
|
|
public override void Update(TwistChainStep0Job job, ref TwistChainStep0Data data)
|
|
{
|
|
}
|
|
}
|
|
|
|
[DisallowMultipleComponent, AddComponentMenu("SIGGRAPH 2019/Twist Chain Step 0")]
|
|
public class TwistChainStep0 : RigConstraint<
|
|
TwistChainStep0Job,
|
|
TwistChainStep0Data,
|
|
TwistChainStep0JobBinder
|
|
>
|
|
{
|
|
}
|
|
}
|