I have a basic 2D game scene, with a CanvasLayer to render the UI properly. Inside the CanvasLayer are a couple UI instances…
They work beautifully. No issues with visuals or scripts… but I seemingly cannot click any of the buttons or otherwise interact with the UI… is there something I have to enable to turn off / on interaction with instantiated UIs?
yes, you have to connect the signals if you are using in the Instantiated scenes programmatically when you create an instance of it or do stuff ( enable ) in instantiate scene if you are doing something using gui ( editor ).
I hope this solve your problem but if it not work can you share the screen shot of your code how you instantiate scene and scene script of instantiate scene.
Considering your code and signals connections are okay, have you setted correctly the mouse filter of the Control nodes? Some control can be intercepting your commands which will look like your UI is locked, use the debbuger to check which control is being focused/clicked
Oh, I didnt instantiate the UI programmatically (though I plan to in the future)
I just placed the UIs in a canvaslayer for temporary testing while I build a framework for the game. The UI scenes work fine on their own but just cant be interacted with when instantiated inside a canvaslayer in a 2D scene
(Im not sure if this is actually the proper way to do it, but this is what I saw described online, and it does render properly when done in this manner)
Im not sure how to do that. The video you included doesnt seem to load for me (Its just loading forever regardless of whether I refresh the page or not)
Run the project, go back for the editor (dpn’t close the running project), open the debugger tab on the bottom bar, go for Misc, there you’ll be able to see which Control is grabbing the focus every time you’re clicking with mouse, check if the correct control is receiving the focus or if another control is stealing the inputs.
I fixed it. Turns out the “Debug UI”'s control node was basically covering the entire screen. Had no idea it registered clicks to be honest… Ill have to be careful with ordering displayable and clickable elements in the future I guess