Replies: 2 comments
-
It's in the last line of that example: |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer! I got it and now it is working better. There is still a problem. When I reset variant to default, it goes to default variant, but after 1-2 seconds it flashes back to variant selected earlier. I change main model also and my idea is to go back to default material variant after model has changed. Drop down menu is working normally, it selects default variant normally, only 3D-model flashes back to non default variant. Something in this code is swapping variant back to earlier selected variant after seconds. I have also emptied drop down menu, but somewhere in the memory is this selected variant still.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to reset material variant example to default variant with button. I have same drop down menu that can be found in example. Is there one line command to switch model variant to default? Like this: "model.setVariant = "default";"?
https://modelviewer.dev/examples/scenegraph/#variants
Beta Was this translation helpful? Give feedback.
All reactions