- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
function OnPostprocessAllAssets (importedAssets : string[], deletedAssets : string[], movedAssets : string[], movedFromPath : string[]) : void
Description描述
This is called after importing of any number of assets is complete (when the Assets progress bar has reached the end).
在一些资源被导入后调用(当资源进度条到达末端) [狗刨学习网]
This call can occur after a manual reimport, or any time you move an asset or folder of assets to a new location in the Project View. All string arrays are filepaths relative to the Projects root Assets folder. importedAssets contains paths of all assets used in the operation. Each consecutive index of movedAssets and movedFromAssetPaths will always refer to the same asset.
这个调用发生在手动导入之后,或者在工程面板中移动一个资源或资源文件夹到新位置时调用.所有的字符串数组是相对于工程根资源文件夹的文件路径.importedAssets 包含该操作中使用的所有资源的路径.每个不同的moveAssets 和 moveFromAssetPaths 索引允许引用相同的资源.
If you perform a bulk operation on several individual assets instead of a folder containing those assets, this function will be called once per asset with each individual asset as the only item in the various arrays.
如果你对几个独立资源执行一个批量操作,而这些资源不在一个文件夹内时,每个资源作为各自队列中唯一的单位调用这个函数.
1.
1.
2.
3.
4.
5.
6.
7.
8.
9.
class MyAllPostprocessor extends AssetPostprocessor {
static function OnPostprocessAllAssets (
importedAssets : String[], deletedAssets : String[], movedAssets : String[], movedFromAssetPaths : String[])
{
for (var str in importedAssets) {
10.
10.
11.
12.
13.
14.
15.
16.
17.
18.
Debug.Log(Reimported Asset: + str);
}
for (var str in deletedAssets) {
Debug.Log(Deleted Asset: + str);
}
for (var i=0;i movedAssets.Length;i++) {
Debug.Log(Moved
Asset:
+
movedAssets[i]
+ from: +
movedFromAssetPaths[i]);
19. }
20. }
21. }
复制代码
复制代码
您可能关注的文档
- TP-Link无线路由器设置与安装.pdf
- Tp-link无线路由器铁通网络设置教程.pdf
- TP-LINK路由器(有线、无线)通用设置图解.pdf
- TP-LINK路由器(有线、无线)及IP地址设置.pdf
- TP-Link路由器外网访问配置方法.pdf
- TP-Link路由器如何设置有线方式桥接图文教程.pdf
- tp-link路由器设置方法(TL-WR841N).pdf
- TP-Link路由器端口映射.pdf
- TP-LINK路由器软件升级图解教程.pdf
- TP-Link路由器连接说明.pdf
- Unity3D地图循环生成分析.docx
- unity3D技术之guilayout.horizontalslider 水平滑动条.docx
- unity3D技术之gui.focuswindow 焦点窗口.docx
- unity3D技术之guilayout.minheight 最小高度.docx
- unity3D技术之guilayout.maxwidth 最大宽度.docx
- unity3D技术之guilayout.selectiongrid 选择表格.docx
- unity3D技术之屏幕内跟随鼠标移动.docx
- Unity3D教程:鼠标点击转换成触摸.docx
- unity3D本科生实训报告汇编.docx
- unity3d轻松调用iOS技巧.docx
原创力文档


文档评论(0)