Contents

ModelDebugOptionsComponent.VisualizationMode.baseColor

A mode that displays the entity’s base color with no lighting or material properties applied.

Declaration

case baseColor

Discussion

Add a ModelDebugOptionsComponent with a visualization mode of baseColor to an entity to tell RealityKit to draw that entity’s base color without any shadows, specular highlights, transparency, or reflections.

Here’s how to enable base color visualization for an entity:

if let television = try? await ModelEntity(named: "tv_retro") {
    let component = ModelDebugOptionsComponent(visualizationMode: .baseColor)
    television.components.set(component)
}

None

baseColor

[Image]

[Image]

See Also

Visualization modes