materialOverrideNames property

List<String>? materialOverrideNames
getter/setter pair

An array of one or more model material names whose properties will be overridden from model layer paint properties.

Only declares which materials are addressable; it holds no values itself. Pair it with a data-driven ModelLayer property such as modelColorExpression, matching ["get", "part"] to a ["feature-state", key] per name, then call MapboxMap.setFeatureState (keyed by this model's own id) to supply values. Cheaper and mergeable, unlike resending materialOverrides.

Implementation

List<String>? materialOverrideNames;