Make Mesh and Scene Import options Serializable so they can be stored in a scene
MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/Geometry/MeshImportOptions.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/Geometry/MeshImportOptions.cs
@@ -43,6 +43,7 @@ namespace Unity.Formats.USD {
/// <summary>
/// Indicates how values are imported from the given scene into a UnityEngine.Mesh object.
/// </summary>
+ [System.Serializable]
public class MeshImportOptions {
/// <summary>

MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImportOptions.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImportOptions.cs
@@ -67,6 +67,7 @@ namespace Unity.Formats.USD {
/// <summary>
/// Indicates how the scene should be imported from USD to Unity.
/// </summary>
+ [System.Serializable]
public class SceneImportOptions {
/// <summary>
@@ -134,6 +135,7 @@ namespace Unity.Formats.USD {
/// <summary>
/// A set of registered mappings from USD shader ID to Unity material.
/// </summary>
+ [System.NonSerialized]
public MaterialMap materialMap = new MaterialMap();
/// <summary>

Make Mesh and Scene Import options Serializable so they can be stored in a scene