摘要:
using UnityEngine;using System.Collections; public class HideOrShowImg : MonoBehaviour { public GameObject Img; void Start() { Img.SetActive(false); } 阅读全文
摘要:
using UnityEngine;using System.Collections;using UnityEngine.UI;public class SliderControl : MonoBehaviour { public Scrollbar m_Scrollbar;//水平滚动条 publ 阅读全文
摘要:
void Update() { //点击手机返回键关闭应用程序 if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Home)) { Application.Quit(); } } 阅读全文
摘要:
using UnityEngine;using System.Collections;using System.IO;using System.Collections.Generic;using System; public class Text : MonoBehaviour{ string Do 阅读全文
摘要:
U3D的WWW加载虽然比较强大,功能很多,但是却不支持中文路径。这就有点杯具了,这个BUG到现在还没改过来…… 如果只开发移动端和网页端,支持不支持也没关系。但假设是开发客户端较为大型的游戏,未免会用到Assetbundle加载,一旦用到就涉及用户是否将游戏放在有中文的路径上了。 一旦有中文,所有A 阅读全文
摘要:
U3D的WWW加载虽然比较强大,功能很多,但是却不支持中文路径。这就有点杯具了,这个BUG到现在还没改过来…… 如果只开发移动端和网页端,支持不支持也没关系。但假设是开发客户端较为大型的游戏,未免会用到Assetbundle加载,一旦用到就涉及用户是否将游戏放在有中文的路径上了。 一旦有中文,所有A 阅读全文
摘要:
1、打包需要用Android的路径打包 using UnityEngine;using System.Collections;using UnityEditor; public class Test : Editor{ [MenuItem("Custom Editor/Create AssetBun 阅读全文
摘要:
单点触摸 Input.touchCount==1 移动触摸 Input.GetTouch(0).phase==TouchPhase.Moved 多点触摸 Input.touchCount > 1 判断两只手指至少有一只为移动触摸 Input.GetTouch(0).phase == TouchPha 阅读全文
摘要:
http://m.blog.csdn.net/article/details?id=45540871 scroll rect里的movement style:unrestricted 自由的,不受控制的 elastic 有弹性的,可以上下左右拉长的 clamped 夹紧的,没有弹性的。严格的在水平或 阅读全文