How to position GO below a GUI header?

#1

Hello everyone,
Here is what I’m trying to achieve:

Basically I want to have a fixed size header (which contains a spine), and a list of game objects right below it.

The problem is when I test different resolutions, I sometime get this result:

How can I make sure the game objects are always BELOW the header? I’ve been trying to get the size of the header GUI node but without success.

Any help would be much appreciated, thank you.

0 Likes

#2

My advice would be to do everything you can to make those GOs into GUI nodes because it’s probably going to be simpler than the alternative. Good luck!

0 Likes

#3

I would really like to avoid this solution because the list of game objects I will display is quite large, and therefore I want to be able to create them dynamically through a factory, and be able to delete them when they’re out of the viewport. Thanks for your help anyways!

0 Likes

#4

You can do the same with GUI using gui.clone_tree() and gui.delete_node()

0 Likes