nhunter Posted July 22, 2022 Posted July 22, 2022 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.
Solution Peter Posted July 23, 2022 Solution Posted July 23, 2022 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: 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? 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. 1
Ichabob Crane Posted July 23, 2022 Posted July 23, 2022 (edited) 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 July 23, 2022 by Ichabob Crane Wanted to add a link and keep the post nicely formatted but accidentally forgot to hold shift while pressing enter 2
nhunter Posted July 24, 2022 Author Posted July 24, 2022 Solution: commented code in TerrainLoaderManager that was calling import.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now