parse method

  1. @override
dynamic parse(
  1. dynamic json, [
  2. String? path,
  3. Function? onLoad,
  4. Function? onError,
])
override

Implementation

@override
parse(json, [String? path, Function? onLoad, Function? onError]) async {
  var animations = parseAnimations(json.animations);
  var shapes = parseShapes(json.shapes);
  var geometries = parseGeometries(json.geometries, shapes);

  var images = await parseImages(json.images, null);

  var textures = parseTextures(json.textures, images);
  var materials = parseMaterials(json.materials, textures);

  var object = parseObject(json.object, geometries, materials, textures, animations);
  var skeletons = parseSkeletons(json.skeletons, object);

  bindSkeletons(object, skeletons);

  return object;
}