Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

codeCreateFuture/MGS-Camera-master

Repository files navigation

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.0 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

  • AlignPreview

AlignPreview

  • Focus

Focus

Contact

  • If you have any questions, feel free to contact me at mogoson@qq.com.

About

相机控制

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • C# 100.0%

AltStyle によって変換されたページ (->オリジナル) /