![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | pew; |
I have the following node structure:
CharacterBody2D/
-- ...unrelated nodes like player's sprite etc....
-- CanvasLayer/
---- HBoxContainer/
------ Panel
HBoxContainer is setup to expand it’s children horizontally and this part works fine, Panel is automatically resized to take up all available space in container.
I want to make container to automatically change it’s horizontal size to the viewport ones, so that the Panel occupies all screen width. Any idea how to do that?