Visibility Inheritance Override

Does godot have any way to override the inheritance of the child of a node? For example, a node 2d has a sprite2d as a child. If the node 2d is hidden, the sprite 2d is hidden. Is there anyway to override this?

No that’s not possible afaik.
And in almost every cases you should not need this. If you need it, it usually means you didn’t structure your nodes properly.
But if you really really need it, you can write a custom code to make invisible every code under Node2D except the one node you need to be visible. And making parent Node2D without any sprite. But again, you should never need to do this.

You can put a plain Node as the parent of the child but this will ignore any transform of the parent so it has downsides

What’s your specific use case?

1 Like

You can work around.
Instead of the visibility of the parent drop the opacity (alpha) in self modulate property. This effectively makes the parent invisible while leaving the child visible.

3 Likes