摘要:
1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 /// 6 /// LoadAssets打开某资源文件并加载其中的所有Prefab到场景中 7 /// 8 public class LoadAssets : MonoBehaviour 9 { ... 阅读全文
posted @ 2017-03-29 10:59
露夕逝
阅读(557)
评论(0)
推荐(0)
摘要:
1 using System.Collections; 2 using UnityEngine; 3 using UnityEditor; 4 using System.IO; 5 6 /// 7 /// 把工程中设置了AssetBundle Name的资源打包成.unity3d 到StreamingAssets目录下 8 /// 9 public class Expor... 阅读全文
posted @ 2017-03-29 10:56
露夕逝
阅读(2621)
评论(0)
推荐(0)
摘要:
批量修改指定路径下的资源的AssetBundleName与Variant。 脚本代码如下: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEditor 阅读全文
posted @ 2017-03-29 10:47
露夕逝
阅读(4344)
评论(0)
推荐(1)
摘要:
在项目中有时会遇到批量生成Prefab的需求。于是写了一个编辑器,用来实现此功能。 在Hierarchy面板中选中多个GameObject,点击生成Prefab即可。 如果所选物体中包含自定义Mesh,需要先在指定目录生成Obj,再将Obj包含的网格赋值给新生成的Prefab。 编辑器脚本如下: u 阅读全文
posted @ 2017-03-29 10:26
露夕逝
阅读(6643)
评论(1)
推荐(0)

浙公网安备 33010602011771号