#ScrollContainer won't adapt when I generate instances.

1 messages · Page 1 of 1 (latest)

fleet karma
#

My structure is:
-ScrollContainer
-VBoxContainer
-Node2D
The Node2D is blank with the script that generates instances of cards one below another. Once these instances overflow the container, ScrollContainer doesn't adapt. It acts as there is just a blank node. How to fix that?
Thank you

boreal robin
#

what do you mean acts as there is just a blank node? got any screenshot?

#

perhaps the cards need to be directly below the VBoxContainer?

fleet karma
#

hero card just holds the script. The script will load instances and position them new below the previous one

boreal robin
#

so how does it look when you run it?

chilly sun
#

Node2D breaks the chain of control nodes

#

ScrollContainer only reacts to control nodes

#

Node2D is not a control node

fleet karma
fleet karma
#

I believe ScrollContainer thinks it's empty

boreal robin
#

probs try changing the type of your hero card from Node2D to Control or something

#

so itll be a control type node

fleet karma
#

i tried but it breaks it. I'll do a deep dive as to why that is.