当前位置:网站首页>About the version mismatch of unity resource package after importing the project

About the version mismatch of unity resource package after importing the project

2022-06-25 21:38:00 Xiaoyaoleping

One 、 Related resources

Unity Asset Store Upper Unity Particle Pack 5.x Download and import resource packages ;

Two 、 Import resource pack ,  The resources cannot be used normally

Import resource error :

Library\PackageCache\[email protected]\PostProcessing\Runtime\PostProcessManager.cs(424,66): error CS0117: 'EditorSceneManager' does not contain a definition for 'IsGameObjectInScene'

3、 ... and 、 resolvent

Online approach 1、 Delete the corresponding dynamic directory file ;

It is said that the version file is inconsistent with the imported resource file , After deleting the file , Reopen the project , The resource file for updating adaptation will be automatically generated , So as to solve the problem of file resource version error ;

 

result : After reopening , The generated dynamic file still has an error , Can't solve the problem !

Online approach 2、 Find the target file , Comment relevant old version statements .

Double click to report an error , Open target script , Comment the statements in the method , If you need to return a value , Go straight back to true;

 

result : After comment , The project can be operated normally ; But after closing the project , Reopen the project , The script is reset to the content before annotation ; Can't solve the problem at all .

3、 According to the error notification , Update related Package package ;

You know PostProcessing Of package Version mismatch ,

It should be from Window——>Package Manage in , To find the corresponding PostProcessing Resource Pack ;

choice Update Resource Pack .

 

After this update , This problem can be completely solved . Modification method 2 It's a change package Code for , There is no way to fundamentally solve the problem ,

4、 reflection

Preconceived ideas put the PostProcessing Think it's URP There are PostProcessing, I thought I had updated it before URP Resource Pack , So I haven't thought about updating the resource package method before ;

Later, I thought the two were different , Change your mind to renew PostProcessing Resource Pack , To solve the problem correctly .

Next time you have a problem , Try more , Try to avoid preconceived ideas .

原网站

版权声明
本文为[Xiaoyaoleping]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181304018049.html