上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
该文被密码保护。 阅读全文
posted @ 2018-06-29 18:04 朋丶Peng 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Screen.resolutions 分辨率列表(安卓平台试了不能用此方法,最好用宏定义判断一下平台) C# => public static Resolution[] resolutions; Description 描述 All fullscreen resolutions supported 阅读全文
posted @ 2018-06-29 15:11 朋丶Peng 阅读(2647) 评论(0) 推荐(0) 编辑
摘要: Screen.SetResolution 设置分辨率 C# => public static void SetResolution(int width, int height, bool fullscreen); C# => public static void SetResolution(int 阅读全文
posted @ 2018-06-28 19:04 朋丶Peng 阅读(8898) 评论(0) 推荐(0) 编辑
摘要: The current screen resolution (Read Only). 当前屏幕的分辨率。(只读) If the player is running in window mode, this returns the current resolution of the desktop. 阅读全文
posted @ 2018-06-28 18:59 朋丶Peng 阅读(3160) 评论(0) 推荐(0) 编辑
摘要: 原预制体以及脚本的下载地址:https://download.csdn.net/download/qq_15017279/10404010 1.新建一个Scroll View,删掉横向的滚动条,并且把Scroll View的Scroll Rect组件的Horizontal Scrollbar设置为N 阅读全文
posted @ 2018-05-08 20:54 朋丶Peng 阅读(1722) 评论(3) 推荐(0) 编辑
摘要: 1.在一个游戏对象上建一个PlayMakerFSM,在状态机里新建几个不同类型的变量: 2.再新加几个Action: 3.运行,结果如下: 阅读全文
posted @ 2018-05-07 12:00 朋丶Peng 阅读(385) 评论(0) 推荐(0) 编辑
摘要: C#: // "/"号现在整形运算是取整,浮点运算时为除法运算 Console.WriteLine("(56/10):{0}", 56 / 10);//5 Console.WriteLine("(56/10):{0}", 56.00 / 10);//5.6 Console.WriteLine("(5 阅读全文
posted @ 2018-05-04 17:17 朋丶Peng 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: 输入ctor后 点击两次Tab键,即可快速插入无参构造器。 阅读全文
posted @ 2018-05-04 11:26 朋丶Peng 阅读(262) 评论(0) 推荐(0) 编辑
摘要: http://www.xuanyusong.com/archives/3476 阅读全文
posted @ 2018-04-28 11:21 朋丶Peng 阅读(781) 评论(0) 推荐(0) 编辑
摘要: FindObjectOfType<>() 是按类型查找游戏对象.<>里面填写类型,那要是有多个这种类型的呢?来试一下. 1. 新建一个场景,新建一个Test.cs脚本,内容随便,再新建一个Test02.cs脚本,内容如下: 2. 在场景中新建4个Cube,顺序打乱. 3. 把4个Cube弄成下图那样 阅读全文
posted @ 2018-04-28 11:03 朋丶Peng 阅读(11438) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页