Describe the bug
When using a MaterialsVariantsComponent, unselecting the GameObject and re-selecting it clears the value displayed in the inspector.
To Reproduce
Steps to reproduce the behavior:
- Add a
Multiple Instance script on a GameObject, with url set to a glTF file using the "KHR_materials_variants" extension and Quantity set to 1.
- Press Play
- Select the created object "glTF-0"
- In the
Materials Variants Component, change the dropdown to one of the variant of your model
- Unselect the GameObject
- Re-select the GameObject
- See MaterialsVariantsComponent displaying
<no variant>
Expected behavior
The variant dropdown displays the variant selected at step 5.
Desktop (please complete the following information):
- glTFast version 6.18.0
- Unity Editor version 6000.3.12f1
- Platform: Editor
Note: I didn't update the [Unreleased] section of the changelog since the main branch here is not up to date with version 6.18.0
Describe the bug
When using a
MaterialsVariantsComponent, unselecting the GameObject and re-selecting it clears the value displayed in the inspector.To Reproduce
Steps to reproduce the behavior:
Multiple Instancescript on a GameObject, with url set to a glTF file using the "KHR_materials_variants" extension andQuantityset to 1.Materials Variants Component, change the dropdown to one of the variant of your model<no variant>Expected behavior
The variant dropdown displays the variant selected at step 5.
Desktop (please complete the following information):
Note: I didn't update the [Unreleased] section of the changelog since the main branch here is not up to date with version 6.18.0