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); }
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); }
public void InitBySkeletonActioin(CGfxSkeletonAction action) { SDK_GfxSkeletonAnimation_InitBySkeletonActioin(mCoreObject, action.CoreObject); }