Why Is The Parent UI Auto-Selected When Dragging?

Hey Devforumers!

Sometimes, when I click a UI object to physically drag it to a position, it automatically selects it’s parent UI instead, which is usually a frame. Why does this happen? (And if possible, how could I prevent this from happening?)

3 Likes

There is a property of a UIObject called ZIndex, the higher the number in this the higher the priority the UI object will be, so you can select it. Try changing the ZIndex to a high number.

3 Likes

Thanks, let me try that! I knew what ZIndex was but I never knew it would affect that.

2 Likes

No problem, the index is very useful for layering UI.

3 Likes