Is it possible to make a child of an invisible Node2D visible, independent of the parent?
Not that I know of.
The simplest is to introduce an additional parent node and/or hide not the entire parent scene, but only the objects in it.
maybe you can use self_modulate to set the parent visibility. like this: parent.visible = false == parent.self_modulate.a = 0.0
vmjcv maybe you can use self_modulate to set the parent visibility. like this: parent.visible = false == parent.self_modulate.a = 0.0
I think that should be:
parent.visible = true parent.self_modulate.a = 0.0
If parent.visible is false, then the child will not be visible.
Can you explain more about what you are doing? This seems like a strange use case. Meaning, logically, if the 2 Nodes should be independent (in respect to the visibility) then it doesn't make sense that they have a parent child relationship.
DaveTheCoder I mean if he controls the visibility of the parent node through parent.visible. Then he can be equivalently replaced with parent.self_modulate
You can use an empty parent, except for the child node. Or, you can disable the visibility of any geometry of the parent.