![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
鼠标
fanfan_hongyun
VR unity 虚拟仿真
展开
-
unity InputSystem 新老对比
【代码】unity InputSystem 新老对比。原创 2023-07-04 17:32:51 · 597 阅读 · 0 评论 -
鼠标控制物体移动360旋转和视距
using System.Collections;using System.Collections.Generic;using UnityEngine;public class NewBehaviourScript : MonoBehaviour { Color color = Color.blue; Color defaultcolor; priva原创 2018-01-22 11:26:23 · 477 阅读 · 3 评论 -
Game视图实现Scene鼠标滑动观看
using UnityEngine;using System.Collections;public class bl_UHTCamera : MonoBehaviour { // WASDQE Panning public float minPanSpeed = 0.1f; // Starting panning speed public float max...转载 2018-09-25 11:42:40 · 249 阅读 · 0 评论 -
模拟第一人称(鼠标可显)
using System.Collections;using System.Collections.Generic;using UnityEngine;public class CameraMove : MonoBehaviour{ [SerializeField] private float moveSpeed; float xx = -90f; ...转载 2018-09-26 09:34:02 · 315 阅读 · 0 评论 -
Unity 2d/3d 拖拽
using System.Collections;using System.Collections.Generic;using UnityEngine;//接口引用的事件系统命名空间using UnityEngine.EventSystems;public class Test_2d : MonoBehaviour, IDragHandler,IPointerClickHandl...原创 2018-09-28 17:17:46 · 461 阅读 · 0 评论