当前位置:网站首页>After UE4 is packaged, mesh has no material problem
After UE4 is packaged, mesh has no material problem
2022-07-07 15:42:00 【WhiteTian】
Original article , Reprint please indicate the source .
After packaging Mesh There is no material problem
Preface
UE4 Sometimes I will encounter Material Lost problems ( All are DefuaultMaterial Grey material ), It is normal to run under the editor , If you meet , Then you can stop here and see if there is the answer you want .
Solution
1> First confirm whether the resource is Cook
First confirm whether your material has been quoted , In fact, this purpose is to confirm whether your resources are Cook, That is to confirm whether it has been hit by your Pak Inside .
How to confirm :
Look at the picture below , Corresponding to your own project Saved/Cooked/…… Under the table of contents , Find the name of your missing material , See if there is .
When we get here , You should be able to confirm whether you have not been Cook 了 .
without , Confirm according to the following , If any , Don't look at this title .
In fact, the reference relationship is confirmed , Not only for material loss , Anything else uasset May not have been cook On .
First, the engine cook Resources are the following principles
1) You want to pack umap All the referenced resources in it will be cook, Are static in umap Stored in it , For example, you write dynamic in the code Load A resource , At this time, the engine does not know the reference relationship when the resource is packaged . So you need to follow the following steps to specify
2) Specify additional cook The catalog of , In project settings Packaging->Additional Asset Directories to Cook Specified in the path array , After adding it here, your resources will be Cook here we are .
And notice that there is another one next to it Directories to never cook( This path means you don't want to cook Add your path here ), Of course, the resource confirmation you use cannot appear in this path
If your resources are not Cook, Then follow the above steps before packing .
2> Make sure the path of your material is in Chinese
stay 4.25 In engine version , Unfriendly to Chinese resource support , image 4.26.2 It's all right . such as UMG Give up Image Set up a picture ( Chinese pictures or pictures are in Chinese path ), It is found that the setting is not up , English is ok .
I just found 4.25 There is a problem with Chinese , Of course, please confirm whether the engine version you are currently using also has such problems .
If it exists , See if your material is in the Chinese path , If it is , Then basically put it in the English path .
It's better to use English , First, norms , The second is to reduce the time for error finding .
3> The material Usage rules , Confirm what type of resources you have , Then go to the corresponding material Usage match
Every UMaterial There's one on every street Usage An array of properties for , This data determines what your material can be applied to UE In terms of type
( For example, whether it should arrive Skeletal Mesh Bone mesh /Instanced Static Meshes Static grid instances, and so on ) as follows
The principle is actually what your material will be applied to UE In terms of type , If you use this material Usage There is no choice InstanceStaticMesh But you used InstanceStaticMesh On , Then there will be no material .
If you are in a similar situation , You might as well open the material to have a look usage here .
For example, the car in the figure below is packed without material , Resources are also cook 了 , There is no Chinese path . But the material attribute is checked Skeletal Mesh, But I did it through Brush Brush the car into the scene , This type is actually AInstancedFoliageActor, In fact, it is the common function of brushing vegetation . Finally, it corresponds to InstanceStaticMesh On , So I'm in every shader of the car Usage Added in InstanceStaticMesh The option to . Then the packaging effect is right .
4> Load external Pak No material
This article introduces loading a separate Pak There is no material inside
thank you , It's not easy to create , Great Xia, please stay … Move your lovely hands , To a Focus on Go bai
ღ( ´・ᴗ・` ) finger heart <( ̄︶ ̄)>
边栏推荐
- Annexb and avcc are two methods of data segmentation in decoding
- MongoDB数据库基础知识整理
- [quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
- [follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
- Oracle control file loss recovery archive mode method
- Use cpolar to build a business website (2)
- Streaming end, server end, player end
- Summer safety is very important! Emergency safety education enters kindergarten
- 2.Golang基础知识
- Using eating in cocos Creator
猜你喜欢
Monthly observation of internet medical field in May 2022
【深度学习】语义分割实验:Unet网络/MSRC2数据集
Vertex shader to slice shader procedure, varying variable
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
使用cpolar建立一个商业网站(2)
有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
[server data recovery] data recovery case of raid failure of a Dell server
[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
Unity之ASE实现全屏风沙效果
【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)
随机推荐
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
Basic knowledge sorting of mongodb database
Oracle控制文件丢失恢复归档模式方法
Cocos uses custom material to display problems
[original] all management without assessment is nonsense!
众昂矿业:萤石继续引领新能源市场增长
MongoD管理数据库的方法介绍
Getting started with webgl (2)
【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
避坑:Sql中 in 和not in中有null值的情况说明
Nacos conformance protocol cp/ap/jraft/distro protocol
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
Nacos一致性协议 CP/AP/JRaft/Distro协议
Do not use memset to clear floating-point numbers
2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
[quick start of Digital IC Verification] 23. AHB sramc of SystemVerilog project practice (3) (basic points of AHB protocol)
Unity's ASE achieves full screen sand blowing effect
[Lanzhou University] information sharing of postgraduate entrance examination and re examination
居然从408改考自命题!211华北电力大学(北京)
【原创】一切不谈考核的管理都是扯淡!