Sets the visibility of the caller’s node and all of its children.
setVisibility(visible);
Parameter |
Description |
visible |
true if visible, false if not visible |
Return Value
If the method succeeds, the return value is true. If the method fails, the return value is false. SGWorld.lastError contains the failure reason.
Remarks
Most of the nodes have a visual representation on the terrain (e.g., polygons). This method provides a way to show/hide elements on the terrain. If the caller node is a group or a layer, all of the child nodes also become visible/hidden.