Giter Site home page Giter Site logo

Comments (5)

Project-NSX avatar Project-NSX commented on July 3, 2024

After some testing replacing the materials on the prefab's models fixes this issue. Even if the material is exactly the same as the previous one.
Any help with this would be greatly appreciated. I'd rather not replace the materials on the many elements of the map.

from prefablightmapping.

Ayfel avatar Ayfel commented on July 3, 2024

Oh strange, from the error it seems to be from the prefab saving, maybe if they are prefab variants?

I am a bit in the dark here, can you share pictures or a package or something? This error comes from the saving system in Unity so something could be corrupted but its hard to tell what

from prefablightmapping.

Project-NSX avatar Project-NSX commented on July 3, 2024

Oh sorry, I forgot to mention. This issue happens with normal prefabs as well as prefab variants. I stripped things right back to iron out exactly where the issue is.

Here's a package with the issue still present in it. https://we.tl/t-gu2qML4OTy
This package was made in 2020.3.20f1 and requires a URP project.
Baking the lighting onto the prefab and then saving the scene (or trying to build, or put the prefab in a scene and saving that scene) shows this error.

I imagine the issue present in this package is on all of the materials that are in the package that provides the roads.
Thanks very much.

Edit: having tested some more with the project I created the package from it doesn't consistently produce the error anymore, which may make reproducing it an issue.

from prefablightmapping.

Ayfel avatar Ayfel commented on July 3, 2024

It seems to be an issue with the version of the materials you created, I wonder if you created these materials in a previous old version of the RenderPipeline because they are showing to be version -1 and the new Renderpipeline version checker fails with it. Definitely seems like an issue with those specific materials

from prefablightmapping.

Project-NSX avatar Project-NSX commented on July 3, 2024

Ahh, this makes a lot of sense.
The materials were part of an assets package that we bought and brought into the project.
To solve the issue I opened the materials in notepad++ and changed "version: -1" to "version: 4"

Thanks very much for the help and for creating the script!

from prefablightmapping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.