Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions UnityMcpBridge/Editor/Helpers/GameObjectSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ public static object GetComponentData(Component c, bool includeNonPublicSerializ
Type propType = propInfo.PropertyType;
AddSerializableValue(serializablePropertiesOutput, propName, propType, value);
}
catch (Exception ex)
catch (Exception)
{
// Debug.LogWarning($"Could not read property {propName} on {componentType.Name}: {ex.Message}");
// Debug.LogWarning($"Could not read property {propName} on {componentType.Name}");
}
}

Expand All @@ -383,9 +383,9 @@ public static object GetComponentData(Component c, bool includeNonPublicSerializ
Type fieldType = fieldInfo.FieldType;
AddSerializableValue(serializablePropertiesOutput, fieldName, fieldType, value);
}
catch (Exception ex)
catch (Exception)
{
// Debug.LogWarning($"Could not read field {fieldInfo.Name} on {componentType.Name}: {ex.Message}");
// Debug.LogWarning($"Could not read field {fieldInfo.Name} on {componentType.Name}");
}
}
// --- End Use cached metadata ---
Expand Down
Loading