06 2016 档案
摘要:using UnityEngine;using System.Collections; public class TouchMoveTest : MonoBehaviour { private Touch oldTouch1; //上次触摸点1(手指1) private Touch oldTouch
阅读全文
摘要:using UnityEngine;using System.Collections; public class TouchMoveTest : MonoBehaviour { private Touch oldTouch1; //上次触摸点1(手指1) private Touch oldTouch
阅读全文
摘要:using UnityEngine;using System.Collections; public class TouchMoveDir : MonoBehaviour { public GameObject TextPrefab; private GameObject tempText; pri
阅读全文
摘要:using UnityEngine;using System.Collections;using UnityEngine.UI;using Mono.Data.Sqlite;using System.IO;/// <summary>/// perfect!/// 初步实现登录数据创建、保存和查找的可
阅读全文
摘要:1、查询语句不区分大小写,但严格的区分中英文
阅读全文
摘要:using UnityEngine;using System.Collections; public class ZYLOAdAssetBundle : MonoBehaviour { //不同平台下StreamingAssets的路径是不同的,这里需要注意一下。 public static rea
阅读全文
摘要:using UnityEngine;using System.Collections; public class FollowCube : MonoBehaviour{ //用于绑定参照物对象 public Transform target; //缩放限制的系数 private float minV
阅读全文
摘要:using UnityEngine;using System.Collections;using ZXing;using ZXing.QrCode;using System;using System.IO;public class BarcodeCam : MonoBehaviour{ public
阅读全文
摘要:using UnityEngine;using System.Collections;using UnityEngine.UI; /// <summary>/// 用来测试动态生成下载列表/// </summary>public class UILoad : MonoBehaviour{ int c
阅读全文
摘要:此脚本是挂在Plane下,要将Audio Sourse和Audio listener组件挂在此物体上才能正常播放视频。这两个组件挂在camera上无法播放视频。 using UnityEngine;using System.Collections; public class TestMp4B : M
阅读全文
摘要:http://www.runoob.com/sqlite/sqlite-expressions.html 封装好的sql using UnityEngine; using System;using System.Collections;using Mono.Data.Sqlite; public c
阅读全文
摘要:using UnityEngine;using System.Collections;using LitJson;using System.IO;using UnityEngine.UI; public class jsonjx : MonoBehaviour { public RawImage r
阅读全文
摘要:using UnityEngine;using System.Collections;using LitJson; public class jsonjx : MonoBehaviour { // Use this for initialization void Start () { StartCo
阅读全文
摘要:using UnityEngine;using System.Collections; public class DragIt : MonoBehaviour { public Material mat; public Color color = Color.red; public Vector3
阅读全文
摘要:using UnityEngine; using System.Collections; public class Test : MonoBehaviour { public Texture test; public Rect rect; // Use this for initialization
阅读全文
摘要:using UnityEngine;using System.Collections; public class ScrollView : MonoBehaviour{ public Texture[] pics_; public GUISkin skin_; private int nIndex_
阅读全文
摘要:Unity是基于Mono的,地球人都知道...它是开源的 代码下载:https://github.com/Unity-Technologies/mono直接下Zip包(注意Tag版本与开发用的Unity版本要相同) 编译自己的Unity项目,找到 /Data/Managed/Assembly-CSh
阅读全文
摘要:下载xml到本地-读取解析xml-读取xml里的地址将图片下载到本地-从本地读取调用图片。 using UnityEngine;using System.Collections;using System.Collections.Generic;using System.IO;using UnityE
阅读全文
摘要:using UnityEngine;using System.Collections;using System.Collections.Generic;using System.Xml;using UnityEngine.UI;using System.IO;using System.Text;pu
阅读全文
摘要:using UnityEngine;using System.Collections;using Vuforia;/// <summary>/// 自己重新默认的DefaultTrackableEventHandler脚本(当然你不重写也行,/// 脚本的现实的效果:当摄像头拍摄到识别图时模型显示在
阅读全文
摘要:using UnityEngine;using System.Collections; public class GameLoad : MonoBehaviour { public GameObject magicianPrefab; public GameObject swordmanPrefab
阅读全文
摘要:using UnityEngine;using System.Collections; public class CharacterCreation : MonoBehaviour { public GameObject[] characterPrefabs; public UIInput name
阅读全文
摘要:using UnityEngine;using System.Collections;using UnityEditor;/// <summary>/// 本脚本用来打包场景/// </summary>public class Assetbundle : MonoBehaviour{ //分开打包
阅读全文
摘要:已知有一个XML文件(bookstore.xml)如下: <?xml version="1.0" encoding="gb2312"?> Oberon's Legacy Corets, Eva 5.95 1、往节点中插入一个节点: XmlDocument xmlDoc=new XmlDocument
阅读全文
摘要:如果你是在IOS平台,强烈建议把PlayerSetting里面的Script Call Optimization设置成Slow and Safe,这样比如遇到空指针 或者 数组越界这样的错误,程序是不会直接闪退的。(Android上不用设置)这里我创造一个数组越界的错误。 void Start ()
阅读全文
摘要:xml <Image> <Resourses name="image" url="aaaaaa" > <Image1>image1|http://192.168.0.98/MyItems/TankCard/Image1.jpg</Image1> </Resourses></Image> using
阅读全文
摘要://从服务器下载IMG资源 private IEnumerator DownLoadToLocalIMG(string url, string strname) { Debug.Log("从服务器下载资源img:" + strname); //url编码 WWW.EscapeURL(url); //
阅读全文
摘要:using UnityEngine;using System.Collections;using System.Collections.Generic;using System.Xml;using UnityEngine.UI;using System.IO;using System.Text;pu
阅读全文
摘要:创建数据库1、新建连接(连接名,数据库路径和文件名) ddl (结构定义 CREATE ALTER DROP)dml(数据操作 INSERT DELETE UPDATE SELECT) 创建表create table修改表alter table —删除表DROP table t_cjb --插入数据
阅读全文
摘要:using UnityEngine;using System.Collections;using System.IO;/// <summary>/// Move file./// 移动文件,/// </summary>public class MoveFile : MonoBehaviour { /
阅读全文
摘要:(一)GET方法 (二)POST方法 调用两个方法
阅读全文
摘要:1,学会使用代码比去研究懂它更有效率。 2,要多看技术性文章,多会几种其他的语言。 3,学会整理自己一套的代码集,方便下次直接引用。 4,多练习总是没错的,用熟了就自然懂了,理解了。 5,我的愿望,每天都超越昨天的自己。 6,其实并不困难。
阅读全文
摘要:1,学会使用代码比去研究懂它更有效率。 2,要多看技术性文章,多会几种其他的语言。 3,学会整理自己一套的代码集,方便下次直接引用。 4,多练习总是没错的,用熟了就自然懂了,理解了。 5,我的愿望,每天都超越昨天的自己。 6,其实并不困难。
阅读全文