#Getting the vboxcontainer child.global_position
3 messages · Page 1 of 1 (latest)
get_combined_minimum_size() worked to get the container-size post instantiation, but it's a lot of code that could be omitted. Is there another way?
You could try awaiting a frame (await get_tree().process_frame) during the children's _ready to wait for the layout to position it's children, and then try to get it's global position:
func _ready():
await get_tree().process_frame
emit(attributes, global_position)