
unity镜头
fanfan_hongyun
VR unity 虚拟仿真
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
封装相机用于节点间的移动
【代码】封装相机用于节点间的移动。原创 2022-10-12 12:32:50 · 121 阅读 · 0 评论 -
IBGMSMouseOrbitImproved(中键拖动改变焦点)
【代码】IBGMSMouseOrbitImproved(中键拖动改变焦点)原创 2022-10-12 12:25:50 · 120 阅读 · 0 评论 -
防穿墙相机(类似Scene控制)
using UnityEngine;public class Move : MonoBehaviour{ // 在场景中游览的相机(不要给相机加碰撞器!) public Transform tourCamera; #region 相机移动参数 public float moveSpeed = 1.0f; public float rotateSpeed = 90.0f; public float shiftRate = 2.0f; // 按住.原创 2021-12-03 11:43:52 · 496 阅读 · 0 评论 -
沿某个轴方向做位置固定(如相机正前5米处跟随cube)
此脚本挂在相机上using System.Collections;using System.Collections.Generic;using UnityEngine;public class NewBehaviourScript : MonoBehaviour{ public GameObject cube; private Vector3 target ; // Start is called before the first frame update...原创 2021-11-30 14:51:09 · 143 阅读 · 0 评论 -
Unity Cinemachine插件全功能详解
Unity Cinemachine插件全功能详解转载 2021-03-12 15:58:07 · 529 阅读 · 0 评论 -
CameraWork 相机跟随主角
可以设置跟随距离和 高度以及跟随速度 public class CameraWork : MonoBehaviour { #region Private Fields [Tooltip("The distance in the local x-z plane to the target")] [SerializeField] private float distance = 7.0f; [Tooltip.原创 2021-03-04 10:36:41 · 350 阅读 · 1 评论 -
unity_第三人称组合_全
using System.Collections;using System.Collections.Generic;using UnityEngine;public class Player_move : MonoBehaviour{ public float speed = 6.0F; public float jumpSpeed = 8.0F; public float gravity = 20.0F; private Vector3 move...原创 2020-11-14 18:42:56 · 267 阅读 · 0 评论 -
Animator 多个镜头切换
using System.Collections;using System.Collections.Generic;using UnityEngine;using DG.Tweening;public class Test : MonoBehaviour{ private Animator demo; private bool stop; // Start is called before the first frame update void Start(...原创 2020-06-11 17:59:00 · 225 阅读 · 0 评论 -
鼠标右键旋转视角
using System.Collections;using System.Collections.Generic;using UnityEngine;public class Rotation : MonoBehaviour{ //鼠标控制摄像机旋转方向 public Transform Target; //旋转速度 private float ...转载 2019-09-05 10:54:26 · 557 阅读 · 0 评论 -
普通Scene和改过的ChinarSmoothUi3DCamera
//没有焦点 类似senceusing System.Collections; using System.Collections.Generic; using UnityEngine;public class Move : MonoBehaviour{ float speed = 250; public float distance_v; public float distance_h; public float rotation_H_speed = 1;.原创 2020-08-22 15:00:59 · 431 阅读 · 1 评论