Hy,
I want to set a Camera position on the screen but I have no idee. My idee was: I have a given screen pixel position(ex.:81,81 ) and I tryd to set the Camera.pixelRect.center, but pixelRect is a temporary variable. Than after I tryd to use: Camera.rect = new Rect (…),
but I can`t do a convert from screen pixel to Camera normalized View port.
Sorry for my bad english;) .Thanks for any helps.
Hey i am not an expert but i guess this will works :-
var MyCamera : Camera;
MyCamera.transform.position.x = 81 ;
MyCamera.transform.position.y = 81 ;
You can place this code in the function Update().
In the inspector window , drag your camera object and place in this variable.