Score
0
Watch 3 Star 10 Fork 4

Mogoson / MGS-CameraC#MIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Unity plugin for control camera in scene. spread retract

Clone or download
Mogoson authored Rename.
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

MGS-Camera

Summary

  • Unity plugin for control camera in scene.

Demand

  • Translate camera by mouse pointer drag.
  • Camera rotate around target gameobject.
  • Camera smooth align to mark gameobject.

Environment

  • Unity 5.0 or above.
  • .Net Framework 3.5 or above.

Scheme

  • Calculate camera position base on mark center gameobject.
  • Calculate camera position and rotation base on mark target gameobject.
  • Smooth lerp position and rotation of camera.

Achieve

  • MouseTranslate : Translate gameobject by mouse pointer drag.
  • AroundCamera : Camera rotate around target gameobject.
  • AroundAlignCamera : Camera rotate around target gameobject and align to mark gameobject.
  • MouseFocus : Align camera to gameobject on mouse pointer double click it.
  • AlignMark : Mark gameobject as align target and config align parameters.

Demo

  • Demos in the path "MGS-Camera/Scenes" provide reference to you.

Preview

  • Around

Around

  • Align Preview

Align Preview

  • Focus

Focus

Contact

Comments ( 2 )

Sign in for post a comment

C#
1
https://gitee.com/Mogoson/mgs-camera.git
git@gitee.com:Mogoson/mgs-camera.git
Mogoson
mgs-camera
MGS-Camera
master

Help Search