Jump to content

Scene Optimizer seems to break OnTriggerEnter() interactions


tzkoch

Recommended Posts

I've now tried everything but the OnTrigger interactions in the entire scene are broken, even after discarding any changes the optimizer made.

I have tested the functionality of my Tigger Collisions beforehand and they used to work.

Link to comment

Here is the error with presentation of the issue, which I suspect to break all Trigger-Collisions:

 

Couldn't add object to asset file because the Mesh 'M8_L11_0' is already an asset at 'Assets/_ProjectPioneer/Scenes/Production/City_OptimizedObjects/Ground/SP0/M8_L11_0.asset'!
UnityEngine.StackTraceUtility:ExtractStackTrace ()
ProceduralWorlds.SceneOptimizer.EditorEvents:EditorSaveMeshToDisk (UnityEngine.SceneManagement.Scene,UnityEngine.Mesh) (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Editor/Utilities/EditorEvents.cs:106)
ProceduralWorlds.SceneOptimizer.SceneOptimizer:PostProcessSceneOptimization (ProceduralWorlds.SceneOptimizer.OptimizeCall,bool) (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Runtime/SceneOptimizer.cs:112)
ProceduralWorlds.SceneOptimizer.SceneOptimizer:ProcessSceneOptimization (ProceduralWorlds.SceneOptimizer.OptimizeCall,bool,bool) (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Runtime/SceneOptimizer.cs:52)
ProceduralWorlds.SceneOptimizer.SceneOptimizerEditor:PerformSceneOptimization (bool,bool) (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Editor/Tools/SceneOptimizerEditor.cs:192)
ProceduralWorlds.SceneOptimizer.SceneOptimizerEditor:SceneOptimizationPanel (bool) (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Editor/Tools/SceneOptimizerEditor.cs:579)
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,UnityEngine.GUIStyle,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (string,System.Action`1<bool>,bool,UnityEngine.GUILayoutOption[])
ProceduralWorlds.SceneOptimizer.SceneOptimizerEditor:OnInspectorGUI () (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Editor/Tools/SceneOptimizerEditor.cs:126)
ProceduralWorlds.SceneOptimizer.SceneOptimizerEditorWindow:OnGUI () (at Assets/Procedural Worlds/Scene Optimizer/Scripts/Editor/Windows/SceneOptimizerEditorWindow.cs:148)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

Video of the optimization process:

https://public.am.files.1drv.com/y4mnD-VRYXMZI0efd8C4I5R39hJ2vb8HB0FxDyZmPxQxKD_vGe0UsjMBlJSNc09O5CNnuRoLxgzLlB94t0PAo0UoKxQK56AVKZLpeUf1p9Dnom6u5ywF5IgBiAzlK7PfW0lm_CuQAF3bk1niaYZNIMz4U3jOGa7ch79DNqWOejNZhbdOunhe_7uOUrTaUm_s525v_aCOErWeIWPWgSIUA4mhKH7KK0x8FKRnabRTvTrQhI

Link to comment
19 minutes ago, Manny said:

Hey there!

Could you try removing the root folder that contains all of those meshes and try again?
I've noticed that certain versions of Unity are causing issues with saving on top of other assets.

Bad idea, I need the parents for en-/disabling the main set pieces.

Also whether or not I am replacing collider. Objects that had collider lose them and when I reload the scene those objects are completely invisible.

Here is the complete presentation as a short video:
Unity_DxhFIvBL3B.webm

Link to comment
  • 2 weeks later...
On 10/13/2022 at 12:45 AM, Manny said:

Sorry for the confusion, 

But I meant have you tried deleting the 'City_OptimizedObjects' folder and re-optimizing. 

Also, just a side note. I just released a new version of Scene Optimizer that may benefit you greatly in the collider area. 
Try importing it and ensure that 'Merge Colliders' in each of your Optimize Rules are set to false!

Same issue, I believe now ALL colliders are gone:
https://1drv.ms/u/s!Ah64sVPfEPTjk7p_8TpnSuSV9wa5oQ?e=hv9H9x

The objects lose their mesh reference and have no colliders..
unknown.png

Link to comment

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