Jump to content

Unendless Importing blocks code recompiling


nhunter
Go to solution Solved by Peter,

Recommended Posts

After spawning of player character with attached Terrain Loader on him everyone in team (10+ppl) getting unendless Import windows, which blocks code recompiling, so we have to close editor and open it again to apply recompile. Problem persists even if we set session loader to locked mode. Before we worked 4 months without that issue, and after some commit (we can't rollback, because regenerationg biomes is pain, and have lots of stuff changed) that problem raised.

Link to comment
Share on other sites

  • Solution

Hi @nhunter, the file that is being reimported is the Terrain Scenes Data Storage, this is usually referenced on top of the Terrain Loader Manager here:

image.png

The strange thing is there should be no reason for unity to reimport that file at that point during runtime - if the file is already created (which it should, otherwise it would not be possible for you to work on your scene to begin with), the Terrain Loader Manager should then use the reference to that file and no import should take place anymore. 
In the Gaia code we trigger an import for this file on two occasions: 
 - When we create a new world with terrain loading and the file is being created initially
 - When the reference to the file is lost / the file cannot be loaded but there are terrain scenes stored in the "Terrain Scenes" folder inside the session folder - in this case we try to create a new Terrain Scenes Storage file from scratch from the data found in the scene files.

Since you spawn your own players I assume you are familiar with coding, could you please add a breakpoint on line 175 in the TerrainLoaderManager.cs and see if the code execution arrives there in debugging when the player is being spawned?

image.png

If it does, we would need to find out why / when the reference to the Terrain Scenes file is being lost. If this is not the cause for the import dialogue, then it gets interesting, because I could not say where this window is coming from then.

  • Like 1
Link to comment
Share on other sites

Hi all, 

I had an issue similar to this a few months ago on a project I was working on, not quite sure if it's the same problem but it looks very similar. At the time, working in Unity was a nightmare because for some reason, the editor kept re-importing my assets, it was taking me hours to complete simple tasks because of the constant re-importing of assets and I knew it wasn't my machine being slow because I have a really decent set up.

Anyways, the issue turned out to be a Unity bug. When I first started that project, I was not having the issue, I left the project for a few months before coming back to it and that's when the issue came to light.

Again this may or may not be the same issue, but it sounds similar and I remember finding forums such as:
https://forum.unity.com/threads/editor-keeps-reimporting-assets-without-changes.802236/

So just something that might be worth looking into, on the chance that it might be a Unity editor issue rather than a Gaia one, either way, it sucks when things like this happen and slow down productivity so, hope you and your team can find a solution 

Edited by Ichabob Crane
Wanted to add a link and keep the post nicely formatted but accidentally forgot to hold shift while pressing enter
  • Like 2
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...