Inputs

3D Camera Controller For Unity

3D Camera Controller Script

MIT Unity3D

A simple script for zooming management between two objects in a 3D scene. It has a base distance to start acting and smoothing effects for polishment. This script only works for Perspective projections.

Getting Started

Just import the CameraControl.cs script as a component to the desired Camera Game Object.

You’ll be prompted with the following options:

Inspector Options

Drag and Drop the desired game objects to the fields and run the project. If you want to increase the distance the camera controller is going to start acting, the slider for the Base Distance to Act is your guy.

Feel free to adapt the script according to your project.

Deployment

The example project was built using Unity 2017.3.

License

This project is licensed under the MIT License - see the LICENSE.md file for details