Jump to content

Issue with Scene Optimizer `Couldn't add object to asset file...`


Recommended Posts

The full error is as follows:

Couldn't add object to asset file because the Mesh 'M1_L0_0' is already an asset at 'Assets/Scenes/AlienPlanetTormented/AlienPlanetTormented_OptimizedObjects/Large Objects/SP0/LG0/M1_L0_0.asset'!


And the relevant stack trace is :

0x00007ff718783d9c (Unity) AssetDatabase::CheckCanAddObjectToAsset
0x00007ff7187dddb9 (Unity) CreateSerializedAssetV2
0x00007ff71878641f (Unity) AssetDatabase::CreateSerializedAsset
0x00007ff718cfae1c (Unity) AssetDatabaseBindings::CreateAsset
0x00007ff718ad5b52 (Unity) AssetDatabase_CUSTOM_CreateAsset
0x000002109f1ae047 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:CreateAsset (UnityEngine.Object,string)
0x000002109f1ad6cb (Mono JIT Code) [EditorEvents.cs:106] ProceduralWorlds.SceneOptimizer.EditorEvents:EditorSaveMeshToDisk (UnityEngine.SceneManagement.Scene,UnityEngine.Mesh) 
0x000002109f1ada55 (Mono JIT Code) (wrapper delegate-invoke) System.Func`3<UnityEngine.SceneManagement.Scene, UnityEngine.Mesh, UnityEngine.Mesh>:invoke_TResult_T1_T2 (UnityEngine.SceneManagement.Scene,UnityEngine.Mesh)
0x000002109f1a8b24 (Mono JIT Code) [SceneOptimizer.cs:112] ProceduralWorlds.SceneOptimizer.SceneOptimizer:PostProcessSceneOptimization (ProceduralWorlds.SceneOptimizer.OptimizeCall,bool) 


Link to comment

Yes, it is. I was able to get past it by moving all of my object roots under a single game object and using that as a single object root.

Link to comment
  • maaxiim changed the title to Issue with Scene Optimizer `Couldn't add object to asset file...`

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...