在Unity中实现鼠标拖拽物体,滚轮控制物体远近的效果

在场景中除默认camera和light外,添加cube物体,并挂载脚本。 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class ColliderDemo : MonoBehaviour { 6 7 private v
相关文章
相关标签/搜索