![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unity API
MessiThe
这个作者很懒,什么都没留下…
展开
-
Input类,Vector3实例
Unity原创 2022-02-22 20:37:28 · 161 阅读 · 0 评论 -
Unity之Math等方法的使用
Math方法其实内容是比较简单的,只是笔者想想养成记笔记的习惯,所以我们直接看代码。using System.Collections;using System.Collections.Generic;using UnityEngine;public class MaTh : MonoBehaviour{ // Start is called before the first frame update void Start() { Debug.Log(Ma原创 2022-02-18 17:15:33 · 1175 阅读 · 0 评论 -
Unity的Time类
Unity中的Time类Time.deltaTime与Time.timeScaleusing System.Collections;using System.Collections.Generic;using UnityEngine;public class MyTime : MonoBehaviour{// Start is called before the first frame updatevoid Start()//用于初始化的,只调用一次{ } // Upd原创 2022-02-17 23:06:34 · 2864 阅读 · 0 评论 -
Unity之GameObject类
GameObject.Find: 用于查找游戏对象,我们结合代码进行理解:GameObject cube;cube=GameObject.Find("Cube");//在场景中找到Cube对象并把它赋给cubeGameObject.FindWithTag:这个方法也是用来找游戏对象的,只不过是根据游戏对象的tag来匹配的。GameObject.FindGameObjectWithTagusing System.Collections;using System.Collection原创 2022-02-16 03:30:37 · 524 阅读 · 0 评论