drydart / model_viewer.dart

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats.
https://pub.dev/packages/model_viewer
The Unlicense
209 stars 101 forks source link

How to load a local asset instead of loading a URL? #1

Closed Ahmadre closed 4 years ago

Ahmadre commented 4 years ago

I want use my own asset in my asset folder of flutter, but in the example code I only see an "URL" parameter. Can I use local assets?

Thanks for this package :)

Best regards.

Ahmadre commented 4 years ago

nevermind. I had the best results with the unity plugin

artob commented 4 years ago

I added an FAQ entry for your question:

https://github.com/drydart/model_viewer.dart#q-how-do-i-load-a-local-asset-instead-of-loading-a-url

artob commented 4 years ago

As of the 0.8.0 release, loading bundled assets is now supported.