How to hide a Canvas Layer node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Black_Chess_King

How one would go about hiding a node that has a Canvas Layer in it?

I am only able to use them as a root? If so, it should not show options for visibility, only confuses when you try to switch it off, and nothing happens.

:bust_in_silhouette: Reply From: LoneDespair

$CanvasLayer.get_child(0).hide()

Always have a sub parent for your GUI like control node

I personally also use canvas layer as a root for my GUI, as it makes instancing a lot easier and gives me control on the z-axis