LCCObject::setSemanticColor
Sets the colors for AI semantic coloring.
Version Requirement
SDK v0.5.5+
Engine Support
Three.js / CesiumJS
API
LCCObject::setSemanticColor(value: number[][]): void
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
value | number[][] | Yes | - | Color array, each element in [R, G, B] format. Maximum 100 colors. |
Return Value
void
Usage Example
const newColor = [
[255, 82, 82],
[238, 177, 20],
// ... more colors
];
lccObject.setSemanticColor(newColor);
Notes
- Maximum of 100 colors can be set.
- 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::setSemantic()