#Help with canvas layer

11 messages · Page 1 of 1 (latest)

proper lintel
#

I’m trying to display some commands on the screen. I’ve added the canvas layer, but I still don’t see anything when I run it

native blade
#

I think you may want your CanvasLayer to be the parent of that Control Node, and to display something like text on screen you probably want a Label Node inside your Control Node, you can modify the label text through code using the "text" property of that Label node, also, if you want your text to display above everything else, make sure to set the CanvasLayer's "layer" property to a high value

#

Oh just noticed your CanvasLayer is a packed scene, so u probably have a label already

#

I tried to recreate your issue from the images provided alone, and i couldnt, since i dont see any other Canvas layers, make sure your CanvasLayer's layer is higher than zero, also make sure every node in your packed scene is visible. having the canvas layer inside a control shouldnt be an issue, but neither affects the Canvas layer so u dont need it. Maybe try unpacking the scene and see if everything u have is inside the screen bounding box

proper lintel
#

I don't know what to do; everything is set to visible, yet the buttons still do not appear when I run the game. the canvas layer is on 1 i try to change it but nothing happened

native blade
#

weird, try creating a new Canvas Layer, add a Control Child, a Label Child, and see if those show up on screen

proper lintel
#

i enabled this option and now they appear

#

but dont follow the cam

native blade
#

can you show your Canvas layer scene?

proper lintel