
Unity API
MessiThe
这个作者很懒,什么都没留下…
展开
-
Input类,Vector3实例
Unity原创 2022-02-22 20:37:28 · 200 阅读 · 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 · 1289 阅读 · 0 评论 -
Unity的Time类
Unity中的Time类 Time.deltaTime与Time.timeScale using System.Collections; using System.Collections.Generic; using UnityEngine; public class MyTime : MonoBehaviour { // Start is called before the first frame update void Start()//用于初始化的,只调用一次 { } // Upd原创 2022-02-17 23:06:34 · 2931 阅读 · 0 评论 -
Unity之GameObject类
GameObject.Find: 用于查找游戏对象,我们结合代码进行理解: GameObject cube; cube=GameObject.Find("Cube");//在场景中找到Cube对象并把它赋给cube GameObject.FindWithTag: 这个方法也是用来找游戏对象的,只不过是根据游戏对象的tag来匹配的。 GameObject.FindGameObjectWithTag using System.Collections; using System.Collection原创 2022-02-16 03:30:37 · 611 阅读 · 0 评论