SpineSkeletonModel* SkeletonModelFactory::CreateSpineFromJson(const FileIdRef& name, bool isPreCalculated /*= false*/, ResourceShareType shareType /*= ResourceShareType::Share*/) { FileId skeletonfileId = name; FileId atlasFileId = name; skeletonfileId.Name += ".json"; atlasFileId.Name += ".atlas"; return CreateSpineFromJson(skeletonfileId.ToRef(), atlasFileId.ToRef(), isPreCalculated, shareType); }
SpineSkeleton* NodeFactory::CreateSkeletonDefault(const FileIdRef& name, bool isPreCalculated /*= false*/) { FileId skeletonfileId = name; FileId atlasFileId = name; skeletonfileId.Name += ".json"; atlasFileId.Name += ".atlas"; return CreateSkeleton(skeletonfileId.ToRef(), atlasFileId.ToRef(), isPreCalculated); }