loadGltf method

  1. @JSExport()
JSPromise<JSNumber> loadGltf(
  1. String path,
  2. String relativeResourcePath, {
  3. bool force = false,
})

Implementation

@JSExport()
JSPromise<JSNumber> loadGltf(String path, String relativeResourcePath,
    {bool force = false}) {
  return viewer
      .loadGltf(path, relativeResourcePath, force: force)
      .then((entity) => entity.toJS)
      .toJS;
}