当前位置:网站首页>[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
边栏推荐
猜你喜欢

成信大ENVI_IDL第一周实验测试:数组的简单运算+详细解析

02 design of smart home system based on ZigBee

leetcode力扣经典题目——82.柱形图中的最大矩形

ENVI_ Idl: batch Reproject MODIS swath products and specify the range output as GeoTIFF format + parsing

gdb+vscode进行调试5——gdb查看相关命令

Gdb+vscode for debugging 1 -- compile and debug using cmakelist files + attach process debugging

windows安装mysql和jdbc

03 design of urban road dedusting and cooling system based on ZigBee

【解决方案】win11中本地组策略编辑器(gpedit.msc)打不开

ENVI_ Idl: read the text file and output it in GeoTIFF format + simple mean interpolation
随机推荐
Leetcode 70:Climbing Stairs
Oozie 集成 Shell
YYDS! The latest distributed core technology notes summarized by Alibaba technical officers have been launched, which can be regarded as a blessing
成信大ENVI_IDL第二周课后作业:提取n个点的气溶胶厚度+详细解析
图像质量评估指标:SNR、PSNR、MSE和SSIM
Install websocketpp
Analysis of IGBT direct short circuit process
成信大ENVI_IDL第一周实验测试:数组的简单运算+详细解析
STL--list容器(链表)
Labelme正常启动,但无法打开
ENVI_IDL:读取所有OMI产品的NO2柱含量并计算月均值、季均值、年均值+解析
Labelme 的简单用法和界面介绍
Installing MySQL and JDBC on Windows
指針常量與常量指針愛恨情仇
Lintcode 366:Fibonacci 斐波那契数列
STL--queue容器
第二讲 BTC-密码学原理(笔记)
LeetCode:动态规划中的多重背包问题【一个模板解决所有~】
DQN理论基础及其代码实现【Pytorch + CartPole-v0】
How to understand volatile and how to use it