restriction

hello i have a question and ask before and it is not answered right .
my friends it is i think very easy i have a 2d side scrolling game and i have orthographic camera and this camera is not moving instead background moves i restrict my player with absolout float with seeing in game tab that surely is not right because when i change game tab or build game the player go off screen .

ok what is solution how can get position of my camera view i mean that rectangle show in editor view please if write a code write it in c# if you cant write in VB

please it very very very IMPORTAnt

Did you do the Space Shooter Tutorial I posted on this question? : 2d targetting problem - Questions & Answers - Unity Discussions

That should have covered stopping the spaceship from moving off the screen. You can use Mathf.Clamp to set the boundaries of the spaceship.

OK LIKE BEFORE THAT I ASK THIS QUESTION , I DONT FIND MY ANSWER THANK YOU ANYWAY