public PoseSamplePostProcess Clone() { PoseSamplePostProcess clone = this; clone.parentIndices = new NativeArray <int>(parentIndices, Allocator.TempJob); return(clone); }
internal AnimationSampler(AnimationRig targetRig, AnimationClip animationClip) { this.targetRig = targetRig; this.animationClip = animationClip; int numJoints = targetRig.NumJoints; editorAnimation = KeyframeAnimation.Create(this, animationClip); bakedAnimation = null; try { poseSamplePostProcess = new PoseSamplePostProcess(targetRig, animationClip, editorAnimation.JointSamplers[0][0]); } catch (Exception e) { editorAnimation.Dispose(); throw e; } }