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

学习日记——(路由与交换技术)三层交换机

Hcip-hcia knowledge review (II)

C语言也能写植物大战僵尸

Link expansion configuration of OSPF

Routing and interface technology -- Summary of direct network

OSPF的链路扩展配置

Hcip --- condition matching and OSPF Protocol

Hcip --- mGRE comprehensive experiment
![[memory understand the difference and function between ram flash and EEPROM memory]](/img/71/c9ada89e0a876e0581a7b5ceec2bff.png)
[memory understand the difference and function between ram flash and EEPROM memory]

@Requiredargsconstructor annotation use
随机推荐
Unity3d:ugui source code eventsystem input system FAQ
学习日记——(路由与交换技术)网络地址转换 NAT技术
剖析Redis服务器
C custom set
详解TCP的流量控制机制与拥塞控制机制
Link expansion configuration of OSPF
第五周作业
HCIP---BGP相关配置
How to solve too many if statements
Hcip--- BGP related configuration (Federal chapter)
GameFramework:资源热更代码分析,检查版本信息,下载版本文件,校验版本文件,得到更新文件数量,下载文件,TaskPool
PDF在线预览,pdf.js的使用
学习日记——(路由与交换技术)ACL访问控制列表
Explain the release of TCP connection in detail
Routing and interface technology -- Summary of direct network
How far is the first kind of mistake from us
Learning diary - (routing and switching technology) dynamic routing (RIP protocol) and static routing
Article on the basic technology needed to build hybrid app
The correspondence between the concept of go ability and the concept of software development ability
超好用的抓包工具tcpdump