![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | vgarg |
I am working on a 2D game. For my main menu UI, I have a margin container, and inside that I have a VBoxContainer
. In my margin container script, I have following line -
$VBoxContainer.separation = 10
However on running game, I get following error -
Invalid set index ‘separation’ (on base: ‘VBoxContainer’) with value of type ‘int’.
Hence my question - how can I set separation on a VBoxContainer using script?