
unity
Dan0822
博客刚开,文章写的仓促简陋,后期会一步步修正已发表的文章!感谢各位访客~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
startCoroutine()用法总结
官方链接(英文)所属APImonoBehavior代码块语法public Coroutine StartCoroutine(IEnumerator routine);作用开始一个coroutine。The execution of a coroutine can be paused at any point using the yield statement. The yield return va原创 2017-09-14 11:46:31 · 6811 阅读 · 0 评论 -
visual studio code and unity||mac 下使用visual studio 调试unity代码
官方说明 点选右下角open,即可VS code已经更新~比之前的好用很多啦~ 比如”查找”功能:在任一个你想查找的字段上command+F,则可以看到所有符合的字段均被高亮。窗口右上角可以选择:“区分大小写”,“不区分大小写”,“模糊匹配”。 窗口右侧有整份代码文件的预览,预览右侧的红色竖条,告诉你你想查找的这些字段坐落的位置,有横杠的红色竖条是你开始查找时该字段的位置。非常方便,赶快试试吧原创 2017-09-15 16:34:29 · 359 阅读 · 0 评论 -
visual studio code and unity||mac 下使用visual studio 调试unity代码
https://code.visualstudio.com/docs/other/unity原创 2017-09-14 10:23:13 · 408 阅读 · 0 评论 -
SerializeField
描述强制统一序列化一个私有字段。你几乎永远都不需要这个。当Unity序列化您的脚本时,它将只会序列化公有字段。如果除此之外,你还希望Unity序列化一个你的私有字段,你可以将SerializeField属性添加到该字段。Unity将序列化所有脚本组件,重新加载新程序集,并从序列化的版本中重新创建脚本组件。这个序列化不会在.NET的序列化功能中完成,而是内置在Unity。所使用的序列化系统可以执行以下翻译 2017-09-14 17:43:48 · 1498 阅读 · 0 评论 -
Input.GetMouseButtonDown()方法 &Input.GetMouseButton()方法
语法public static bool GetMouseButtonDown(int button);用法描述Returns true during the frame the user pressed the given mouse button.You need to call this function from the Update function, since the state ge翻译 2017-09-14 15:00:55 · 5982 阅读 · 0 评论 -
Input.GetTouch()方法
官方链接(英文)所属APImonoBehavior || input代码块语法public static Touch GetTouch(int index);作用Returns object representing status of a specific touch. (Does not allocate temporary variables).GetTouch returns翻译 2017-09-14 14:30:04 · 4963 阅读 · 0 评论 -
touch结构
用法描述Structure describing the status of a finger touching the screen.Devices can track跟踪 a number of different pieces of data about a touch on a touchscreen, including its phase状态 (ie, whether it has ju翻译 2017-09-14 14:43:40 · 472 阅读 · 0 评论 -
Input.GetAxis()
语法public static float GetAxis(string axisName);用法描述Returns the value of the virtual axis identified by axisName.The value will be in the range -1…1 for keyboard and joystick input.键盘输入&joystick输入If翻译 2017-09-14 15:28:33 · 845 阅读 · 1 评论 -
transform初接触
用法描述Position, rotation and scale of an object.Every object in a scene has a Transform. It’s used to store and manipulate the position, rotation and scale of the object. Every Transform can have a par翻译 2017-09-14 15:10:22 · 204 阅读 · 0 评论 -
yield return用法
疑问using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour { IEnumerator Start() { print("Starting " + Time.time); yield return StartCoroutine(WaitAndPr原创 2017-09-14 11:50:48 · 272 阅读 · 0 评论 -
UnityEvent 中Invoke()方法
只有类型为void的无参函数,才可以被Invoke方法调用。void Start(){Invoke("call_ok",2);//goodInvoke("call_bad1",2);//bad, call_bad1() is not voidInvoke("call_bad2",2);//bad, call_bad1() has parameters}void call_ok(){//s原创 2017-09-21 10:22:41 · 6206 阅读 · 0 评论