コード例 #1
0
        public CGfxSkeletonAction GetSkeletonAction(CGfxSkeleton skeleton, RName name, bool firstLoad = true)
        {
            CGfxSkeletonAction action;

            if (false == SkeletonActions.TryGetValue(name, out action))
            {
                action = new CGfxSkeletonAction();
                if (action.MakeTPoseActionFromSkeleton(skeleton, name, firstLoad) == false)
                {
                    return(null);
                }

                SkeletonActions.Add(name, action);
            }
            return(action);
        }
コード例 #2
0
        public CGfxSkeletonAction GetSkeletonAction(CRenderContext rc, RName name, bool firstLoad = true)
        {
            if (name.IsExtension(CEngineDesc.AnimationSequenceExtension) == false)
            {
                return(null);
            }

            CGfxSkeletonAction action;

            if (false == SkeletonActions.TryGetValue(name, out action))
            {
                action = new CGfxSkeletonAction();
                if (action.LoadSkeletonAction(rc, name, firstLoad) == false)
                {
                    return(null);
                }

                SkeletonActions.Add(name, action);
            }
            return(action);
        }
コード例 #3
0
 public void InitBySkeletonActioin(CGfxSkeletonAction action)
 {
     SDK_GfxSkeletonAnimation_InitBySkeletonActioin(mCoreObject, action.CoreObject);
 }