#Flex Grid Layout Group pls help :')

1 messages · Page 1 of 1 (latest)

dapper wigeon
#

Created a custom Grid Layout that will display children besides each other and if they overflow they wrap around to the next line (in my case children are tags). Works great when adding tags or enabling the object again. Only problem is that when I use the LoadIn method of the TagManager, it displays the tags below each other and I can't figure out why. Does somebody have an idea what's wrong?
Img1 is when loading in aka the problem. Img2 is after disabling and reenabling the panel it's in. Also would work correctly again when I would Add a tag..

#

wait I forgot to send my code lol

#

Flex Grid Layout Group pls help :')

wanton flame
#

maybe wait for a frame between
LayoutRebuilder.MarkLayourFor...
and
tagParent.ArrangeChildren();

#

and use Debug.Log(containerWidth) inside your ArrangeChildren() method

dapper wigeon
#

(really sorry for the late answer btw)
I tried that before already and it didn't help sadly
I'm not really sure what I did 2 days ago, but it's apparently fixed now. Maybe pc restart

wanton lantern
#

UIToolkit has flex grid if you ever just wanna use that ;)