随笔分类 -  Unity3D

Unity3D中读取CSV文件
摘要:直接上代码 Part1: Part2: 补充 关于路径有4个类型: Application.dataPath:该路径指向我们Unity编辑器的Asset文件夹 Application.persistentDataPath:该路径指向iOS和Android的沙盒路径 Application.strea 阅读全文

posted @ 2016-03-19 10:09 JMcc 阅读(2089) 评论(0) 推荐(0)

Unity3D获取当前键盘按键
摘要:获取当前键盘按键,代码如下:using UnityEngine;using System.Collections;public class GetCurrentKey : MonoBehaviour { KeyCode currentKey; void Start () { ... 阅读全文

posted @ 2015-11-10 16:57 JMcc 阅读(5540) 评论(0) 推荐(0)

Unty3D动态加载图片
摘要:试验动态加载图片,代码如下:using UnityEngine;using System.Collections;public class DynamicLoad : MonoBehaviour{ Texture2D txt; IEnumerator Start() { ... 阅读全文

posted @ 2015-11-10 16:44 JMcc 阅读(573) 评论(0) 推荐(0)

导航