Moving a perspective containier in the Z order with a button

Hello,

I have for example a coordinate view with 5 smaller containers layered on top of each other. I want each container to be moved to the front of the view when its corresponding button is pressed.

Something like

IF button 1 pressed move container 1 to front of z order
IF button 2 pressed moved container 2 to front of z order
etc..

What would be the best way to approach this. An On-click event that runs script with Z order manipulation? If so does anyone have a rough example.

Thanks

NEVER MIND i have found out view canvas exists

2 Likes