How do I add a TextureRect to a Control?

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

In the scene tree, I right clicked the control node and added a TextureRect, but that node does not show up in the scene tree even though the output says “Create Node”. What am I doing wrong?

:bust_in_silhouette: Reply From: Zylann

TextureRect starts with no texture assigned. It won’t be visible until you give it a texture. Select it, and choose a texture from the inspector, at the texture property.
Also, it might depend on which control you added it as child of.