Docs: Clarify `CanvasItem` visibility properties and signals
- Reworded the description of the
visibleproperty to emphasize that a CanvasItem is only actually drawn when it and all of its ancestors are visible. - Appended this important nuance to the
visibility_changedandhiddensignals, whose descriptions previously did not mention this precise behavior.
Makes sense to clarify this, but I think the ancestor formulation should be changed in some way that excludes Node3D and Ancestors that have a non CanvasItem Node in between. Can't really think of a concise way to say that though. Maybe "CanvasItem ancestors" is sufficient for now 🤷
I believe struggled with this actually in https://github.com/godotengine/godot/pull/93735 . I think the descriptions in this PR are on the right track and far better than currently.
Thanks!
I merged this locally before seeing the last review comments by @kleonc - those should be addressed in a follow-up.
I merged this locally before seeing the last review comments by @kleonc - those should be addressed in a follow-up.
I'll make a new PR, no problem.