Open martinbonnin opened 5 years ago
This most likely happen because Filament needs to be initialized (to load its native libraries) which I assume Sceneform does in ArFragmentView and/or other views. This limitation should indeed be documented or a public API should be provided to make this work. Thanks for noticing!
It looks like I can't call
ViewRenderable.builder().setView(context, id).build()
before an actual ArFragment View has been inflated/created.To reproduce, move the call to
ViewRenderable.builder().setView(context, id).build()
abovesetContentView
in the solar system example like here: https://github.com/martinbonnin/sceneform-android-sdk/commit/29032b0a7437e7eb9d3ffa9a9807e91e957cda5eI'm fine with this limitation but it could be more explicit (doc or specific error message ?)