![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Degenerate Tech |
i want to get size of all node in c .how to do that .
2)i have 3 children in HBoxContainer .so i want to put 1st children left side ,2nd children in middle and last one in right .and i want to put separation between them according to the screen width .please tell me
i am new in godot .
extends HBoxContainer
func _ready():
#var a=get_tree().root.get_child(0)
#set_position(Vector2( a.get_viewport().size)-get_size()-Vector2(100,0 ))
var c=self.get_children()
for i in c:
print(c.size)