visible property

bool visible
getter/setter pair

Whether this primitive draws in the opaque/translucent color passes. Defaults to true.

Ands with the owning node's visibility hierarchy, so hiding either the node or the primitive hides it. Independent of castsShadow; a primitive can stay invisible while still casting a shadow.

Implementation

bool visible = true;