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..
#Flex Grid Layout Group pls help :')
1 messages · Page 1 of 1 (latest)
wait I forgot to send my code lol
https://pastebin.com/zCpXbNTQ
here it is
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Flex Grid Layout Group pls help :')
maybe wait for a frame between
LayoutRebuilder.MarkLayourFor...
and
tagParent.ArrangeChildren();
and use Debug.Log(containerWidth) inside your ArrangeChildren() method
(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
UIToolkit has flex grid if you ever just wanna use that ;)