setVisibleAt method
BatchedMesh
setVisibleAt(
- dynamic geometryId,
- dynamic value
)
Implementation
BatchedMesh setVisibleAt( geometryId, value ) {
final visibility = _visibility;
final active = _active;
final geometryCount = _geometryCount;
// if the geometry is out of range, not active, or visibility state
// does not change then return early
if (
geometryId >= geometryCount ||
active[ geometryId ] == false ||
visibility[ geometryId ] == value
) {
return this;
}
visibility[ geometryId ] = value;
_visibilityChanged = true;
return this;
}