# MGS-Camera **Repository Path**: Mogoson/mgs-camera ## Basic Information - **Project Name**: MGS-Camera - **Description**: Unity plugin for control camera in scene. - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 22 - **Forks**: 8 - **Created**: 2017-05-26 - **Last Updated**: 2025-03-04 ## Categories & Tags **Categories**: desktop-ui **Tags**: None ## README # 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](./Attachment/README_Image/Around.gif) - Align Preview ![Align Preview](./Attachment/README_Image/AlignPreview.gif) - Focus ![Focus](./Attachment/README_Image/Focus.gif) ## Contact - If you have any questions, feel free to contact me at mogoson@outlook.com.