parseGltf method

Future<GltfRoot> parseGltf(
  1. String filePath
)

Implementation

Future<GltfRoot> parseGltf(String filePath) async {
  final content = await Flame.assets.readJson(filePath);
  return GltfRoot.from(
    prefix: ModelParser.prefix(filePath),
    json: content,
    chunks: [],
  );
}