Jump to content

Terrains not loading


Recommended Posts

After pulling an update from github I am unable to see my terrains. The console gives me a message "Unknown error occurred while loading 'Assets/Gaia User Data/Sessions/GS-20220713 - 234636/Terrain Data/Terrain_1_1-20220718 - 193401.asset".

How do I recover my terrains in the scene?

Link to comment
Share on other sites

There is also another message: NullReferenceException: Object reference not set to an instance of an object
Gaia.TerrainDetailOverwriteEditor.OnEnable () (at Assets/Procedural Worlds/Gaia/Scripts/Editor/TerrainDetailOverwriteEditor.cs:38)

Link to comment
Share on other sites

Hi @Vedad, this sounds like the pull somehow corrupted the terrain data files - every terrain in unity has a data file associated with it. You can see those being referenced e.g. in the Terrain Collider component - in your screenshot it shows a missing reference which is also the reason why the terrain cannot be displayed. Gaia places those terrain data files per default in the "Terrain Data" folder in the session folder, the first error message mentions there seems to be an issue when unity tries to load that file, which indicates the file might be missing or corrupt.
The other error in the console is most likely a follow up-issue from that.
You would need to check on git if the last commit you pulled contained changes on those terrain data objects and return to an earlier state if possible.

Link to comment
Share on other sites

Hi @Peter, thanks for the feedback. Unfortunately, there is only one commit that I made to the files in the TerrainData folder and pulling them back from GitHub doesn't fix the issue. The *.asset files still are over 100MB so it looks like there is still some terrain data in them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

  • Create New...