![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unity3D
西边升起太阳
不会美术的策划不是好的程序。
展开
-
随机数:从一组数据里随机取不重复的几个数值
using System.Collections;using System.Collections.Generic;using UnityEngine;public class RandomTest : MonoBehaviour{ private void Start() { List<int> rdlist = GetRandomList(...原创 2020-03-22 00:59:17 · 623 阅读 · 0 评论 -
时钟计时和倒计时
`using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class TimeTest : MonoBehaviour{public Text timeCountAddText;public Text timeCountDownTex...原创 2020-03-22 00:11:20 · 310 阅读 · 1 评论 -
Unity3D 鼠标拖动和旋转物体以及鼠标拖动图片
1.鼠标拖动物体Cube using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; /// /// 脚本挂到一个Cube上 /// public class Ts : MonoBehaviour {public T原创 2017-12-14 17:40:13 · 6223 阅读 · 1 评论 -
Unity3D 通过鼠标滚轮来放大或缩小视角的大小
Camera.fieldOfView 视野 相机的视野,以度为单位,垂直视野:水平FOV取决于视口的宽高比,当相机是正交时fieldofView被忽略 //Camera.main.fieldOfView = 80;void Update () { //通过鼠标滚轮放大和缩放视角 //放大视角 往前滑 if (Input.GetA原创 2017-12-14 17:48:10 · 7456 阅读 · 0 评论