void SetAnimationSequence2PreviewActor() { if (mPreviewActor == null) { return; } var rc = EngineNS.CEngine.Instance.RenderContext; EngineNS.GamePlay.Component.GAnimationComponent animationCom = null; var meshComp = mPreviewActor.GetComponent <EngineNS.GamePlay.Component.GMeshComponent>(); if (meshComp != null) { var skinModifier = meshComp.SceneMesh.MdfQueue.FindModifier <EngineNS.Graphics.Mesh.CGfxSkinModifier>(); animationCom = new EngineNS.GamePlay.Component.GAnimationComponent(RName.GetRName(skinModifier.SkeletonAsset)); } animationCom.Animation = mPreviewClip; mPreviewActor.AddComponent(animationCom); mPreviewClip.Bind(animationCom.Pose); }
public AnimationBindingPose Bind(Pose.CGfxSkeletonPose pose) { return(Clip?.Bind(pose)); }