Unity中的StreamingAssets
来源:互联网 发布:乐高淘宝散件怎么来的 编辑:程序博客网 时间:2024/06/05 19:19
using UnityEngine;using System.Collections;using System.Text;public class Path : MonoBehaviour { private static StringBuilder m_Path = new StringBuilder(256); void Awake() { Debug.Log( "path = " + AppContentPath() ); Debug.Log( "path url = " + AppContentPathURL() ); } void OnGUI() { GUI.Label( new Rect(10,10,400,30), AppContentPath() ); GUI.Label( new Rect(10,50,400,30), AppContentPathURL() ); } public string AppContentPath() { m_Path.Length = 0; string path = string.Empty; switch( Application.platform ) { case RuntimePlatform.Android: path = m_Path.AppendFormat( "jar:file://{0}!/assets/", Application.dataPath ).ToString(); break; case RuntimePlatform.IPhonePlayer: path = m_Path.AppendFormat( "{0}/Raw/", Application.dataPath ).ToString(); break; case RuntimePlatform.WindowsPlayer: path = m_Path.AppendFormat( "{0}/StreamingAssets/", Application.dataPath ).ToString(); break; default: path = m_Path.AppendFormat( "{0}/StreamingAssets/", Application.dataPath ).ToString(); break; } return path; } public string AppContentPathURL() { m_Path.Length = 0; string path = string.Empty; switch( Application.platform ) { case RuntimePlatform.Android: path = m_Path.AppendFormat( "jar:file://{0}!/assets/", Application.dataPath ).ToString(); break; case RuntimePlatform.IPhonePlayer: path = m_Path.AppendFormat( "file://{0}/Raw/", Application.dataPath ).ToString(); break; case RuntimePlatform.WindowsPlayer: path = m_Path.AppendFormat( "file://{0}/StreamingAssets/", Application.dataPath ).ToString(); break; default: path = m_Path.AppendFormat( "file://{0}/StreamingAssets/", Application.dataPath ).ToString(); break; } return path; }}
0 0
- Unity中的StreamingAssets
- unity StreamingAssets路径
- unity StreamingAssets路径 .
- unity StreamingAssets路径
- Unity StreamingAssets Android路径问题
- StreamingAssets
- 【Unity】关于各个平台加载streamingAssets路径
- Unity中播放StreamingAssets文件夹下的视频文件(PlayFullScreenMovie)
- unity从streamingassets拷贝到persistentassets,再从persistentassets用www加载进入场景
- unity 中使用 WWW 类读取 StreamingAssets 目录的路径问题
- Unity 发布Android不能够正确读取StreamingAssets文件夹下内容
- StreamingAssets文件
- Unity(六) 使用XML/JSON/Binary数据文件封装场景以及StreamingAssets目录的安卓平台同步
- Resources 与 StreamingAssets
- 【Unity编程】Unity中的基本概念
- Unity中的中文显示
- Unity中的线程
- Unity 中的数学知识
- qt数据库总结
- 运用jquery和bootstrap实现登陆失败后弹窗并跳转回登陆页面
- qt绘图简单总结
- 使用驱动器中J:的光盘之前需要将其格式化。
- qt视图简单总结
- Unity中的StreamingAssets
- SQL SELECT(复杂查询)之 自连接 & 子查询 解析
- D3DXVec3TransformCoord Function
- Java几个重要关键字的使用
- 1013. Battle Over Cities (25)
- Redis缓存Object,List对象
- 分类算法之朴素贝叶斯分类
- JS基础
- SemEval-2014 论文笔记(1)