上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: using UnityEngine;using System.Collections; public class HideOrShowImg : MonoBehaviour { public GameObject Img; void Start() { Img.SetActive(false); } 阅读全文
posted @ 2016-07-04 17:51 Fei非非 阅读(944) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;using UnityEngine.UI;public class SliderControl : MonoBehaviour { public Scrollbar m_Scrollbar;//水平滚动条 publ 阅读全文
posted @ 2016-07-04 16:27 Fei非非 阅读(387) 评论(0) 推荐(0) 编辑
摘要: void Update() { //点击手机返回键关闭应用程序 if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Home)) { Application.Quit(); } } 阅读全文
posted @ 2016-07-04 11:11 Fei非非 阅读(192) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;using System.IO;using System.Collections.Generic;using System; public class Text : MonoBehaviour{ string Do 阅读全文
posted @ 2016-07-04 10:55 Fei非非 阅读(205) 评论(0) 推荐(0) 编辑
摘要: U3D的WWW加载虽然比较强大,功能很多,但是却不支持中文路径。这就有点杯具了,这个BUG到现在还没改过来…… 如果只开发移动端和网页端,支持不支持也没关系。但假设是开发客户端较为大型的游戏,未免会用到Assetbundle加载,一旦用到就涉及用户是否将游戏放在有中文的路径上了。 一旦有中文,所有A 阅读全文
posted @ 2016-07-04 10:54 Fei非非 阅读(256) 评论(0) 推荐(0) 编辑
摘要: U3D的WWW加载虽然比较强大,功能很多,但是却不支持中文路径。这就有点杯具了,这个BUG到现在还没改过来…… 如果只开发移动端和网页端,支持不支持也没关系。但假设是开发客户端较为大型的游戏,未免会用到Assetbundle加载,一旦用到就涉及用户是否将游戏放在有中文的路径上了。 一旦有中文,所有A 阅读全文
posted @ 2016-07-04 10:53 Fei非非 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 1、打包需要用Android的路径打包 using UnityEngine;using System.Collections;using UnityEditor; public class Test : Editor{ [MenuItem("Custom Editor/Create AssetBun 阅读全文
posted @ 2016-07-03 22:19 Fei非非 阅读(6055) 评论(0) 推荐(0) 编辑
摘要: 单点触摸 Input.touchCount==1 移动触摸 Input.GetTouch(0).phase==TouchPhase.Moved 多点触摸 Input.touchCount > 1 判断两只手指至少有一只为移动触摸 Input.GetTouch(0).phase == TouchPha 阅读全文
posted @ 2016-07-02 15:37 Fei非非 阅读(455) 评论(0) 推荐(0) 编辑
摘要: http://m.blog.csdn.net/article/details?id=45540871 scroll rect里的movement style:unrestricted 自由的,不受控制的 elastic 有弹性的,可以上下左右拉长的 clamped 夹紧的,没有弹性的。严格的在水平或 阅读全文
posted @ 2016-07-02 10:05 Fei非非 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections; public class TouchMoveTest : MonoBehaviour { private Touch oldTouch1; //上次触摸点1(手指1) private Touch oldTouch 阅读全文
posted @ 2016-06-30 15:05 Fei非非 阅读(422) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页