Skip to content

How to bring an object to the front? #29

Answered by NoryiE
luiz00martins asked this question in Q&A
Discussion options

You must be logged in to vote

When you create 2 objects of the same type, they have by default the same z-index (for example buttons have 5). This means the latest object will be the most foreground object if it's the same z-index. However you can change the z-index by using for example :setZIndex(6)

https://basalt.madefor.cc/#/objects/Object/setZIndex

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@luiz00martins
Comment options

@NoryiE
Comment options

Answer selected by luiz00martins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants