LCCObject::setVisible
Adjusts the visibility of the LCC model.
Can be used for real-time show/hide of the model.
Version Requirement
SDK v0.3.0+
Engine Support
Three.js / CesiumJS
API
LCCObject::setVisible(value: boolean): void
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
value | boolean | Yes | - | true shows the model; false hides it. |
Return Value
void
Usage Example
// Show model
lccObject.setVisible(true);
// Hide model
lccObject.setVisible(false);
Notes
- This method can be called synchronously immediately after
LCCRender.load().
Related APIs
LCCObject::setAlpha()