AssetPostProcessor.OnPreprocessMaterialDescription 的默认实现,此实现将从 .3DS 资源导入的材质描述转换为内部渲染管线材质。
assetImporter | 对资源导入器的引用。 |
assetPath | 要导入的资源的路径名称。 |
context | 导入上下文。 |
GetPostprocessOrder | 覆盖导入器的处理顺序。 |
GetVersion | 返回资源后处理器的版本。 |
LogError | 将导入错误消息记录到控制台。 |
LogWarning | 将导入警告记录到控制台。 |
OnAssignMaterialModel | 提供源材质。 |
OnPostprocessAllAssets | 在完成任意数量的资源导入后(当资源进度条到达末尾时)调用此函数。 |
OnPostprocessAnimation | 当 AnimationClip 已完成导入时调用此函数。 |
OnPostprocessAssetbundleNameChanged | 将资源分配给其他资源捆绑包时调用的处理程序。 |
OnPostprocessAudio | 将此函数添加到一个子类中,以在音频剪辑完成导入时获取通知。 |
OnPostprocessCubemap | 将此函数添加到一个子类中,以在立方体贴图纹理完成导入之前获取通知。 |
OnPostprocessGameObjectWithAnimatedUserProperties | 当自定义属性的动画曲线已完成导入时调用此函数。 |
OnPostprocessGameObjectWithUserProperties | 为每个在导入文件中至少附加了一个用户属性的游戏对象调用此函数。 |
OnPostprocessMaterial | 将此函数添加到一个子类中,以在材质资源完成导入时获取通知。 |
OnPostprocessMeshHierarchy | 当变换层级视图已完成导入时调用此函数。 |
OnPostprocessModel | 将此函数添加到一个子类中,以在模型完成导入时获取通知。 |
OnPostprocessPrefab | Gets a notification when a Prefab completes importing. |
OnPostprocessSpeedTree | 将此函数添加到一个子类中,以在 SpeedTree 资源完成导入时获取通知。 |
OnPostprocessSprites | 将此函数添加到一个子类中,以在精灵的纹理完成导入时获取通知。 |
OnPostprocessTexture | 将此函数添加到一个子类中,以在纹理刚完成导入之前获取通知。 |
OnPreprocessAnimation | 将此函数添加到一个子类中,以在导入模型(.fbx、.mb 文件等)中的动画之前获取通知。 |
OnPreprocessAsset | 将此函数添加到一个子类中,以在导入所有资源之前获取通知。 |
OnPreprocessAudio | 将此函数添加到一个子类中,以在导入音频剪辑之前获取通知。 |
OnPreprocessMaterialDescription | 将此函数添加到一个子类中,以在材质从 Model Importer 导入时接收通知。 |
OnPreprocessModel | 将此函数添加到一个子类中,以在导入模型(.fbx、.mb 文件等)之前获取通知。 |
OnPreprocessSpeedTree | 将此函数添加到一个子类中,以在导入 SpeedTree 资源(.spm 文件)之前获取通知。 |
OnPreprocessTexture | 将此函数添加到一个子类中,以在纹理导入器运行之前获取通知。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.