ModelMaterialPart

open class ModelMaterialPart(val featureStateId: String, val materialOverrides: List<String>) : ModelPart

Model material part can be applied with color or emission effect.

Parameters

featureStateId

the unique feature state id to drive the associated material part overrides in materialOverrides.

materialOverrides

the associated material ids from the model that is overridable.

Constructors

Link copied to clipboard
fun ModelMaterialPart(materialOverride: String)

Construct a simple ModelMaterialPart with only one material override, the material override will also be used as the feature state id for updating the material.

Link copied to clipboard
fun ModelMaterialPart(featureStateId: String, materialOverrides: List<String>)

Functions

Link copied to clipboard

Reset the color to the default value.

Link copied to clipboard
fun updateColor(@ColorInt color: Int, colorMixIntensity: Double = 1.0)

Update color of the ModelMaterialPart.

Properties

Link copied to clipboard
Link copied to clipboard

The color mix intensity of the ModelMaterialPart.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard