Hello guys,
I have a script attached to the a camera. I have 2 buttons in the OnGUI(): one for the orthographic view and the other for the perspective.
So when I press the first one for the orthographic view I call:
camera.orthographic = true;
when I call the other for the perspective I simply call:
camera.orthographic = false;
The Update() function is empty. I dunno why I click for the orthographic view, I can see it for 1 milli second and then the camera is set back to the perspective view. Why?!
The only way I got to fix that is putting in the Update() this call:
camera.orthographic = orthoBooloean;
where orthoBoolean is set true/false depending on which buttons I clicked on. But, I see this behaviour really weird. WHY!?.
Many thanks
GC.