当前位置:网站首页>[unity Editor Extension] the pre-processing and post-processing pictures of unity assets are automatically transferred to sprite2d
[unity Editor Extension] the pre-processing and post-processing pictures of unity assets are automatically transferred to sprite2d
2022-07-19 02:15:00 【Fantasy world】
Here is mainly the use of Unity Resource pre-processing and post-processing API:AssetPostprocessor
Refer to the official introduction :https://docs.unity.cn/ScriptReference/AssetPostprocessor.html

AssetPostprocessor Allows you to connect to the import pipeline and run scripts before or after importing assets .
During model import , Functions are called in the following order :
1.OnPreprocessModel Called at the beginning, you can override the ModelImporter Set up .
2. After importing meshes and materials , Create a GameObject hierarchy from the imported nodes . Use OnPostprocessMeshHierarchy Change hierarchy . Each represents the import node GameObject Are endowed with corresponding MeshFilter、MeshRenderer and MeshCollider Components . Assigning materials to MeshRenderer Before , Would call OnAssignMaterialModel function .
3. stay GameObject initialization MeshRenderers And it exists “userdata” after OnPostprocessGameObjectWithUserProperties Called . This occurs before child GameObjects are generated .
4. If animation generation was not disabled in the previous phase ( see also ModelImporter.generateAnimations), It will generate S
边栏推荐
- 字符串转换为整数
- Gdb+vscode for debugging 5 - GDB view relevant commands
- 搭建map-reduce开发环境
- LeetCode:动态规划中的多重背包问题【一个模板解决所有~】
- Zeno paradox 2 Achilles and tortoise
- Characteristics and application points of electrolytic capacitor
- Differences between saber PSPICE Simulink power supply simulation software
- windows安装mysql和jdbc
- Configure map reduce workflow in oozie
- Memory pooling of pooled components
猜你喜欢
随机推荐
Gdb+vscode for debugging 4 - GDB executes relevant commands
Leetcode 322: Coin Change - 动态规划
Analysis of IGBT direct short circuit process
工程编译那点事:Makefile和cmake(一)
树和堆知识点总结
On the properties and methods of list < t >
Chengxin University envi_ IDL third week class content 1: reading OMI data (HDF5 file) and output + parsing
CAN协议通信
Build Ozzie environment
Zeno paradox 2 Achilles and tortoise
Aurix development studio installation
软件测试技术期中测试小结|软件测试基础&执行测试&测试设计和开发
Saber's most powerful digital analog mixed signal simulation software
ENVI_ Idl: average calculation + analysis of MODIS swath products in batches
STL--map容器
第二讲 BTC-密码学原理(笔记)
(附word操作以及视频讲解)使用ARCGIS进行地图配准_投影变换_普通地图制作_专题地图制作
ENVI_IDL: 文本文件的读取(主要是txt、csv文件)
Hue Oozie Editor 调度 shell
Differences between saber PSPICE Simulink power supply simulation software









