Topic was automatically imported from the old Question2Answer platform.
Asked By
Skydome
I want to access the viewport container’s> Size Flags > Horizontal > Expand via gdscript.
I can’t find how to do this with Doc. Both online docs and Godot engine’s documentation is missing info regarding this. Does anyone know.
A screenshot below if you didn’t fully understand my question.
When I did $ViewportContainer.size_flags_horizontal did come up but after that when I do a . and nothing appears after that. And the documents don’t have a size_flags_horizontal either. Any ideas?
$viewportcontainer.size_flags_horizontal = the value can be 1 for just fill, 2 for expand, 1 for fill and expand, 4 for Shrink center, 8 for shrink end.