public static JsonSkeleton buildFromPrefabRoot(GameObject prefabRoot) { var result = new JsonSkeleton(); var builder = new JsonSkeletonBuilder(); builder.build(result, prefabRoot); return(result); }
public static JsonSkeleton buildFromSkinMesh(SkinnedMeshRenderer meshRend) { var result = new JsonSkeleton(); var builder = new JsonSkeletonBuilder(); builder.build(result, new SkinnedMeshRenderer[] { meshRend }); return(result); }