#LayoutOrder is goofy

1 messages · Page 1 of 1 (latest)

vestal oracle
#

I'm making a rhythm game and I'm trying to make a circle slide across the grey bars as you can see in the video. However, it is for some reason shown beneath the grey bars instead of above them despite having the same LayoutOrder as the buttons on the left side of the screen which are clearly shown above the bars.

fiery sparrow
#

just increase the circles Zindex

misty latch
#

what is LayoutOrder?

fiery sparrow
#

pretty sure he ment Zindex

misty latch
#

no like

#

literally

#

whats that

#

what does it do

fiery sparrow
#

you know how layers work in art programs like krita?

#

same thing

misty latch
#

like what should have priority of being shown?

fiery sparrow
#

yeah thats pretty much how it works

misty latch
#

ah alr

#

tysm

vestal oracle
# fiery sparrow pretty sure he ment Zindex

No I definitely meant LayoutOrder, it's quite literally what it sounds like. So if a gui had a LayoutOrder of 0 and another one had 1, the one with 0 would be on top, or atleast that's how it's supposed to be working.

#

LayoutOrder is a real property

vestal oracle
#

Uh what do you mean by that

gray rain
#

If you want the layout to be actually go by order, you have to use global

gray rain
#

Called ZindexBehavior

#

If you set it to global, it goes by zindex of every ui in the screengui

vestal oracle
#

Can't try it rn lemme check documentation

gray rain
#

ZIndexBehavior goes by sibling by default

#

But if you have multiple screengui, you have to use layout order if you want to order the screengui

vestal oracle
#

I read it, I think I get the gist

vestal oracle
gray rain
#

Layout order only is helpful for stuff inside screengui like if you put constraints like UIListLayout

#

Or any layout

vestal oracle
#

Ohh, ok tysm

gray rain
#

ZIndex is what determines what drawn first inside screengui

vestal oracle
#

its 1am my brain isnt braining

vestal oracle
#

isnt zindex assigned to the screengui itself

#

oh wait

gray rain
vestal oracle
#

i was saying zindex as short for zindexbehavior this whole time

#

so uh

gray rain
#

ZIndex and ZIndexBehavior are different

vestal oracle
#

looked very stupid

#

yeah