Control camera in Unity3D

I’m kind of Amish when it comes to programming, i like do all myself and so know how works all the parts, and fit Between them is so much more easy.

CameraControl.cs is a interface between things moving around the world and the interaction of mouse/touch of player.

World: 2 floating pyramids.


Script: in C#

1) Move when player touch/click the screen (deceleration on release)
2) Zoom in – out with mouse scrollwheel (only mouse)


TODO:  a lot of thing,

1)  Improve movement with camera size (field of view/orthographic)
2) implement Zoom on touch devices

 problem to see, download plugin.




Submit a Comment

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>