笔记
2014-09-24 21:59
127 查看
jsp jstl标签的导入:<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
Unity:
Unity脚本模板位置XXX\Editor\Data\Resources\ScriptTemplates
android API官方文档 http://www.android-doc.com/reference/packages.html
Mega-Fiers动画变形插件
//unity不同平台下StreamingAssets的路径是不同的,并且只能使用WWW类加载, 这里需要注意一下。 public static readonly string m_PathURL = #if UNITY_ANDROID "jar:file://" + Application.dataPath + "!/assets/";
#elif UNITY_IPHONE
Application.dataPath + "/Raw/";
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR "file://" + Application.dataPath + "/StreamingAssets/";
#else string.Empty;
#endif
使用WWW读取本地可持久化(可读写)路径
//注意!这里是android的持久化(可读写)路径,必须只加“file://”这个前缀,否则WWW找不到文件
string path = "file://"+Application.persistentDataPath + "/Cube.assetbundle";
//编辑状态的进度框
EditorUtility.DisplayProgressBar(title,desc,value);//value值范围 0~1之间
C#字符串转字节数组:
string base64 = "";
byte[] inputBytes = System.Convert.FromBase64String(base64);
字节数组转字符串:
byte[] bytes = null;
string base64= System.Convert.ToBase64String(inputBytes);
Unity:
Unity脚本模板位置XXX\Editor\Data\Resources\ScriptTemplates
android API官方文档 http://www.android-doc.com/reference/packages.html
Mega-Fiers动画变形插件
//unity不同平台下StreamingAssets的路径是不同的,并且只能使用WWW类加载, 这里需要注意一下。 public static readonly string m_PathURL = #if UNITY_ANDROID "jar:file://" + Application.dataPath + "!/assets/";
#elif UNITY_IPHONE
Application.dataPath + "/Raw/";
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR "file://" + Application.dataPath + "/StreamingAssets/";
#else string.Empty;
#endif
使用WWW读取本地可持久化(可读写)路径
//注意!这里是android的持久化(可读写)路径,必须只加“file://”这个前缀,否则WWW找不到文件
string path = "file://"+Application.persistentDataPath + "/Cube.assetbundle";
//编辑状态的进度框
EditorUtility.DisplayProgressBar(title,desc,value);//value值范围 0~1之间
C#字符串转字节数组:
string base64 = "";
byte[] inputBytes = System.Convert.FromBase64String(base64);
字节数组转字符串:
byte[] bytes = null;
string base64= System.Convert.ToBase64String(inputBytes);
相关文章推荐
- 程序员考试补课笔记-第二天
- 学习Raft算法的笔记
- 程序员考试补课笔记-第二十一天(完)
- 程序员考试补课笔记-第十九天
- 程序员考试补课笔记-第二十天
- 程序员考试补课笔记-第十七天
- JSP自学笔记
- 程序员考试补课笔记-第八天
- 程序员考试补课笔记-第九天
- 程序员考试补课笔记-第十天
- 程序员考试补课笔记-第十一天
- 程序员考试补课笔记-第十五天
- 程序员考试补课笔记-第十六天
- 程序员考试补课笔记-第五天
- 程序员考试补课笔记-第三天
- 程序员考试补课笔记-第四天
- STL的学习笔记之一
- MFC Window程序设计(第二版)精华浓缩笔记(三)
- MFC Window程序设计(第二版)精华浓缩笔记(二)
- MFC Windows程序设计(第二版)精华浓缩笔记