diff --git a/Editor/Utilities/TriUnitySerializationUtilities.cs b/Editor/Utilities/TriUnitySerializationUtilities.cs index 5dccd3d..2546f4f 100644 --- a/Editor/Utilities/TriUnitySerializationUtilities.cs +++ b/Editor/Utilities/TriUnitySerializationUtilities.cs @@ -14,6 +14,11 @@ namespace TriInspector.Utilities public static bool IsSerializableByUnity(FieldInfo fieldInfo) { + if (fieldInfo.IsInitOnly) + { + return false; + } + if (fieldInfo.GetCustomAttribute() != null || fieldInfo.GetCustomAttribute() != null) {