i got object in the screen that locate at first at x=0,y=0,z=0
later its move to diffident position.
i just want make sure this object not go where the player dont see him (after size of the screen resolution the game current run)
can u explain to me what i need to do here?
Camera.WorldToScreenPoint gives you the position at the screen. just check if this position is inside your screenresolution. and also check if the z component of the vector is positive because objects behind camera also appear inside the resolution (bug? feature?).
what you need to do to keep the object inside the players view depends on your game. you could for example cast a ray through the middle of your screen 10 units forward and move the object towards the returned position.