user interface - Rotating GUI.Box Causes Clipping -


i attempting rotate 2 different gui boxes's on z axis. each box have different z axis value. following image shows how trying make them appear(i made following image in photoshop):

alt text

my problem: unable rotate boxes on z axis without clipping occurring. can rotate panels on x , y axis not z without clipping occurring. can have 2 boxes different z rotation using gui.matrix (i've read in other questions isn't possible)?

this happens:
alt text

any ideas how can achieve rotation shown in first image?

void ongui() {     matrix4x4 guimatrixorig = gui.matrix;     gui.matrix = matrix4x4.trs(vector3.zero, quaternion.euler(0, 45, 0), new vector3(1.0f, 1.0f, 1.0f));      gui.box (new rect (10,10,400, 400), "loader menu");     gui.matrix = guimatrixorig; } 

this has been asked while ago but.. if else trys alike should try use guiutility.rotatearoundpivot function., moving multiple boxes without clipping should work way.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -