AssetPostprocessor 资源处理器
来源:互联网 发布:淘宝链接二维码 编辑:程序博客网 时间:2024/06/06 00:18
ssetPostprocessor lets you hook into the import pipeline and run scripts prior or after importing assets.
AssetPostprocessor让你钩进导入管线,在运行脚本之前或导入资源之后。
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。
This way you can override default values in the import settings or modify the imported data like textures or meshes.
这样你可以在导入的设置中重载默认值或修改导入的数据,如纹理或网格。
Variables变量
- assetPathThe path name of the asset being imported.
被导入的资源的路径名 - assetImporterReference to the asset importer
引用资源导入器
Functions函数
- LogWarningLogs an import warning to the console.
记录一个导入警告到控制台 - LogErrorLogs an import error message to the console.
记录一个导入错误消息到控制台 - GetPostprocessOrderOverride the order in which importers are processed.
重载导入器执行的次序
Messages Sent发送消息
- OnPreprocessTextureAdd this function in a subclass to get a notification just before the texture importer is run.
在子类中重载这个函数以便在纹理导入器运行之前获取通知 - OnPostprocessTextureAdd this function in a subclass to get a notification when a texture has completed importing just before the texture is saved to disk.
在子类中加入这个函数,以便在纹理载入存入磁盘之前获得一个通知。 - OnPreprocessModelAdd this function in a subclass to get a notification just before a model (.fbx, .mb file etc.) is being imported.
在子类中加入这个函数,以便在模型载入之前获得一个通知。 - OnPostprocessModelAdd this function in a subclass to get a notification when a model has completed importing
在子类中加入这个函数,以便在模型载入之后获得一个通知。 - OnPostprocessGameObjectW...Gets called for each GameObject that had at least one userpropery attached to it in the imported file.
在导入文件中,为每个至少附加了一个用户属性的游戏物体调用。 - OnAssignMaterialModelFeeds a source material
获取一个源材质 - OnPostprocessAudioAdd this function in a subclass to get a notification when an audio clip has completed importing.
在子类中加入这个函数,以便在一个声音剪辑载入后获得一个通知。 - OnPreprocessAudioAdd this function in a subclass to get a notification just before an audio clip is being imported.
在子类中加入这个函数,以便在一个声音剪辑载入之前获得一个通知。 - OnPostprocessAllAssetsThis is called after importing of any number of assets is complete (when the Assets progress bar has reached the end).
在一些资源被导入后调用(当资源进度条到达末端) - 原文地址:http://www.ceeger.com/Script/AssetPostprocessor/AssetPostprocessor.html
0 0
- AssetPostprocessor 资源处理器
- AssetPostprocessor
- AssetPostprocessor 使用
- 各家处理器资源网站
- 处理器架构资源整理
- Unity3d AssetPostprocessor简单用法
- Unity之AssetPostprocessor学习一
- 处理器
- 处理器
- 处理器
- 处理器
- 第9讲 ARM9 S3C2440处理器的硬件资源
- SpringMVC的静态资源过滤设置/处理器设置
- java.sql.SQLException: 查询处理器用尽了内部资源,无法生成查询计划 错误分析解决
- CloudSim源码分析之主机资源分配(处理器能力篇)
- 《玩转.NET Micro Framework 移植-基于STM32F10x处理器》资源汇总
- 让 Windows 在后台和前台程序之间平均分配处理器资源。
- CREELINKS平台_处理器CeAd资源使用说明(CeAd的配置与使用)
- SQL基本单表查询
- UFUNCTION用法
- JAVA 学习模块十四: 多态
- Linux、ContOS下安装卸载Mysql
- jsp页面下载html文件
- AssetPostprocessor 资源处理器
- 9-12(canvals绘图篇-弧线)
- UVA120
- 车牌识别
- js入门
- post方式,header对接接口
- SQL基本多表查询
- 自定义键盘切换到系统键盘时textField中的内容被清空了
- HDU 5877 dfs+离散化+树状数组(树上维护)