Unity-CameraController:可以在RTS游戏中使用的Unity相机

上传者: 42150745 | 上传时间: 2024-05-21 17:17:52 | 文件大小: 36KB | 文件类型: ZIP
Unity-CameraController 这是一个相机控制器,可用于Unity中的RTS游戏。 它远非完美,但可以很好,快速地完成工作。 以下是当前实施的清单: 键盘 W,A,S和D平移 Q和E旋转 R和F缩放 鼠 右键单击并拖动以平移 将鼠标移到屏幕边缘之一以平移 鼠标中键可水平和垂直旋转 行为举止 如果某个对象被标记为Ground层(只要您在自己喜欢的groundLayer变量中的检查器中对其进行设置即可,只要您喜欢即可)并且AdaptToTerrainHeight设置为true,则当摄像机达到最小值时,它将自动上升在zoomMin变量中设置的zoom 在“游戏”选项卡中打开Gizmos,以查看相机运动产生的光线 将Camera设置为将其移动平滑到所需位置,您可以使用smoothing变量打开和关闭它,也可以设置smoothingFactor变量 这段代码的一部分类似于该视频发

文件下载

资源详情

[{"title":"( 34 个子文件 36KB ) Unity-CameraController:可以在RTS游戏中使用的Unity相机","children":[{"title":"Unity-CameraController-master","children":[{"title":"ProjectSettings","children":[{"title":"ProjectVersion.txt <span style='color:#111;'> 52B </span>","children":null,"spread":false},{"title":"InputManager.asset <span style='color:#111;'> 5.39KB </span>","children":null,"spread":false},{"title":"TagManager.asset <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"EditorSettings.asset <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false},{"title":"GraphicsSettings.asset <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"DynamicsManager.asset <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"ProjectSettings.asset <span style='color:#111;'> 35.44KB </span>","children":null,"spread":false},{"title":"NavMeshAreas.asset <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"Physics2DSettings.asset <span style='color:#111;'> 4.21KB </span>","children":null,"spread":false},{"title":"NetworkManager.asset <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"AudioManager.asset <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"TimeManager.asset <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"QualitySettings.asset <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"EditorBuildSettings.asset <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"Assets","children":[{"title":"UnityVS.meta <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"Scenes.meta <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"Materials","children":[{"title":"Orange.mat.meta <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Orange.mat <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"Scripts.meta <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"Scenes","children":[{"title":"Camera.unity <span style='color:#111;'> 22.64KB </span>","children":null,"spread":false},{"title":"Camera.unity.meta <span style='color:#111;'> 175B </span>","children":null,"spread":false}],"spread":true},{"title":"UnityVS","children":[{"title":"Editor","children":[{"title":"SyntaxTree.VisualStudio.Unity.Bridge.dll.meta <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"SyntaxTree.VisualStudio.Unity.Messaging.dll.meta <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"UnityVS.VersionSpecific.dll.meta <span style='color:#111;'> 393B </span>","children":null,"spread":false}],"spread":true},{"title":"Editor.meta <span style='color:#111;'> 192B </span>","children":null,"spread":false}],"spread":true},{"title":"Prefabs.meta <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"Scripts","children":[{"title":"CameraController.cs.meta <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"CameraController.cs <span style='color:#111;'> 9.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"Prefabs","children":[{"title":"CameraObject.prefab.meta <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"CameraObject.prefab <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"Materials.meta <span style='color:#111;'> 192B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 378B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明