Class KHR_materials_variants
Hierarchy
- KHR_materials_variants
Implements
Index
Properties
enabledSearch playground for enabled
Defines whether this extension is enabled.
Readonly nameSearch playground for name
The name of this extension.
Methods
get Available VariantsSearch playground for getAvailableVariants
Gets the list of available variant names for this asset.
Parameters
rootMesh: Mesh
The glTF root mesh
Returns string[]
the list of all the variant names for this model
get Last Selected VariantSearch playground for getLastSelectedVariant
resetSearch playground for reset
Reset back to the original before selecting a variant.
Parameters
rootMesh: Mesh
The glTF root mesh
Returns void
select VariantSearch playground for selectVariant
Select a variant given a variant name or a list of variant names.
Parameters
rootMesh: Mesh
The glTF root mesh
variantName: string | string[]
The variant name(s) to select.
Returns void
Static Get Available VariantsSearch playground for GetAvailableVariants
Gets the list of available variant names for this asset.
Parameters
rootMesh: Mesh
The glTF root mesh
Returns string[]
the list of all the variant names for this model
Static Get Last Selected VariantSearch playground for GetLastSelectedVariant
Static ResetSearch playground for Reset
Reset back to the original before selecting a variant.
Parameters
rootMesh: Mesh
The glTF root mesh
Returns void
Static Select VariantSearch playground for SelectVariant
Select a variant given a variant name or a list of variant names.
Parameters
rootMesh: Mesh
The glTF root mesh
variantName: string | string[]
The variant name(s) to select.
Returns void
Specification