I’m creating a rts style game and I want to limit the camera to a specific area without being able to leave the map. Would this be done with triggers or is there a code I can use to make it so the x and z coordinates of the camera can only reach a max range?
yea just put it into the movement script
if(input.getbutton("goLeft") && transform.position.x > leftLimit)
transform.postion += vector3.left * time.deltatime;
do the same with up right and bottom