[Feature] Objects z-index Move to top/Move to bottom

This is a must have in every game editor I think is really needed.

3 Likes

What should it do? Give a z-order of 9999? What happens if you do the same to another instance?
Or should it check all z-orders and assign max+1 to it? once or permanently? :thinking:

I only speak in theory, I do not know how it can be implemented in practice
In a foreach of all objects in the Scene/Layer selected+
suppose the object is redbox
function moveToTop() {
document.getElementById(‘redbox’).style.zIndex = INT_MAX;
}
function moveToBottom() {
document.getElementById(‘redbox’).style.zIndex = INT_MIN;
}

I think this is a good idea. Not sure how it would be implemented, but I think I’d like to see the following options.

  • Move to highest existing Z-order
  • Move to lowest existing Z-order
  • Move to highest existing Z-order +1
  • Move to lowest existing Z-order -1
1 Like