LCCObject::setSemantic
Enables or disables AI semantic coloring rendering.
Version Requirement
SDK v0.5.5+
Engine Support
Three.js / CesiumJS
API
LCCObject::setSemantic(value: boolean): void
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
value | boolean | Yes | - | true enables semantic coloring; false disables it. |
Return Value
void
Usage Example
// Enable semantic rendering
lccObject.setSemantic(true);
// Disable semantic rendering
lccObject.setSemantic(false);
Notes
- This method depends on AI semantic labels in the LCC data. If the LCC data has not been AI-labeled, it will have no effect.
Related APIs
LCCObject::setSemanticColor()