Stopping the rotation of the unity 3D rendering

Hi all

I have a 3D game,

in the OnGUI() method, i set the iphone orientation to portrait, checking if it is not in the correct orientation

while this works fine for the GUI draws, the 3D rendering rotates anyway

anybody knows how to stop the rotation of the 3D rendering?

setting the orientation to portrait in Update() and FixedUpdate() did nothing

cheers

Just to be clear, do you mean the GUI rotates to the correct position but the view camera stays where it is?

Yes exactly