当前位置:网站首页>Unity used trilib plug-in under URP pipeline to load model material incorrectly
Unity used trilib plug-in under URP pipeline to load model material incorrectly
2022-07-23 12:53:00 【Code writing for a long time, eyes uncomfortable】
Currently in use Unity Most of the development projects have been used URP Render pipeline , however TriLib The default material of the loaded model is the material of the built-in rendering pipeline , This will cause the material to not display properly , The solution is as follows :
1、 stay Assets Create a new one in the directory AssetLoaderOptions Of ScriptObejct file : Here's the picture 
2、 Create a new one UniversalRPMaterialMapper Of ScriptObejct file : Here's the picture 
3、 Now you will get two files , Continue after confirmation 
4、 Click on AssetLoaderOptions, choice Materials, take UniversalRPMaterialMapper Add files to Material Mappers in 
5、 At this step, load the prepared model again, and the materials can be displayed normally .
But there will also be errors in Map Compression . Because this plug-in requires the width and height of the map to be 4 Multiple , If the standard is not met, an error will be reported , We can set it again , Here's the picture 
stay Texture Choose not to compress , That's all right. .
6、 Load model , I use the following API , Loaded from hard disk
AssetLoader.LoadModelFromFile(path, null, LoadEndCallBack, null, null, parent, assetLoaderOptions);
path: route
LoadEndCallBack: Loading completed callback function
parent: The parent object GameObject type
assetLoaderOptions: Created above AssetLoaderOptions file , For convenience, I put Resources Under the folder , use Resources.Load<>()
function
The work environment :
Unity2021.3.2f1c1
TriLib 2
The end of the article
边栏推荐
猜你喜欢

超好用的抓包工具tcpdump

学习日记——(路由与交换技术)网络地址转换 NAT技术

Learning diary - (routing and switching technology) ACL access control list

OSPF comprehensive experiment in hcip-mgre environment

OSPF综合实验

HCIP---OSPF细节讲解

HCIP---BGP相关配置(联邦篇)

Routing extension configuration of OSPF and rip

Depth first find all simple paths from vertex u to vertex v in the graph
![[AUTOSAR storage stack NVM]](/img/7a/15e01f8ace647b55e11e764dba1b64.png)
[AUTOSAR storage stack NVM]
随机推荐
HCIP-第一次实验
HCIP---MGRE环境下的OSPF综合实验
OSPF的链路扩展配置
DHCP 第二次实验
2小时1000人吃饭,要多少台座椅?
Explain TCP segmentation and IP fragmentation in detail
Explain the flow control mechanism and congestion control mechanism of TCP in detail
Article on the basic technology needed to build hybrid app
详解TCP分段与IP分片
Unity3d:ugui, UI and special effect particle level, bakemesh above 2018.2, particles between two images and in Scrollview
记一次日志文件IO系统的设计心得
学习日记——(路由与交换技术)网络地址转换 NAT技术
关于搭建Hybrid App所需要的基础技术一文
Briefly describe the similarities and differences between raft and Paxos in design
Hcip --- OSPF details
第一类错误离我们有多远
FTP实验及概述
MySQL性能优化,索引优化
[Reading Notes "Phoenix architecture" - a large-scale distributed system with reliable architecture. Zhou Zhiming] (I)
C语言也能写植物大战僵尸