In my GUI I often use invisible boxes to group nodes. What is the recommended way of doing it? Is there any difference in performance?
- Visible = DISABLED
- Alpha = 0
In my GUI I often use invisible boxes to group nodes. What is the recommended way of doing it? Is there any difference in performance?
It seems like these two options are treated the same:
A node can be enabled but invisible. This is useful if you use the node as a click-zone or as a “folder”—a container for other nodes.
In such cases, you usually don’t want the nodes to be rendered (visible) even if they are enabled (i.e., is_enabled returns true and they can be animated).
I use the Druid plugin to design the GUI. If I use is_enabled to disable a node, it causes some APIs to throw errors, as the node becomes unreadable. Therefore, to make it invisible, I move it to a position where it cannot be seen using animations and gui.set_position. If I set is_visible, the callback functions will still be triggered.