- Home /
Question by
shublack · Jun 06, 2018 at 02:32 AM ·
cameracamera-movementboundary2d cameracamera pan
How to create a boundaries to a free camera
I use this code to freely move my camera in the game using touch in the android phone but I want to set a boundary to camera movement. I knew there is something called clamp or Mathf.clamp I alose implement it (2nd picture) but the problem happens after adding the code my camera stop moving. It's a 2d game so I fixed my z-axis but I don't get it what is the problem.
Comment
I more thing I would like to share the above program is running on android using unity remote 5 BUT WHEN I BUILD AP$$anonymous$$ THEN INSTALL IT the the same problem happening camera stop moving