Wrapped PostProcess callbacks in try-catch
MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImporter.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImporter.cs
@@ -324,7 +324,11 @@ namespace Unity.Formats.USD {
Profiler.BeginSample("USD: Post Process Hierarchy");
foreach( var processor in root.GetComponents<IImportPostProcessHierarchy>())
{
+ try {
processor.PostProcessHierarchy(primMap, importOptions);
+ } catch (System.Exception ex) {
+ Debug.LogException(ex);
+ }
}
Profiler.EndSample();
@@ -916,7 +920,11 @@ namespace Unity.Formats.USD {
Profiler.BeginSample("USD: Post Process Components");
foreach( var processor in root.GetComponents<IImportPostProcessComponents>())
{
+ try {
processor.PostProcessComponents(primMap, importOptions);
+ } catch (System.Exception ex) {
+ Debug.LogException(ex);
+ }
}
Profiler.EndSample();
}

Wrapped PostProcess callbacks in try-catch