Hid/unHide Nodes in a Scene #855
-
How can i hide/unhide nodes from the view ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
robertosfield
Jun 19, 2023
Replies: 2 comments 2 replies
-
The vsg::Switch node is designed for switch off the traversal of it's children. Each child of the Switch has a Mask (a 64bit mask( that is combined with the Visitor's traversalMask and if it's not 0 then the child is traversed. To switch on a child use vsg::MASK_ALL, and switch off a child use vsg::MASK_OFF. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
vsg-dev
-
Thank you very much. You are correct. It has been working in my project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The vsg::Switch node is designed for switch off the traversal of it's children. Each child of the Switch has a Mask (a 64bit mask( that is combined with the Visitor's traversalMask and if it's not 0 then the child is traversed.
To switch on a child use vsg::MASK_ALL, and switch off a child use vsg::MASK_OFF.