您的位置:首页 > Web前端 > JavaScript

笔记

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);


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  jstl