Skip to content

Commit 00765c5

Browse files
authored
Merge pull request CoplayDev#178 from dsarno/windows-compatibility-improvements
Windows MCP configuration improvements & cleanup
2 parents d43d3a9 + 94bbc98 commit 00765c5

File tree

3 files changed

+318
-56
lines changed

3 files changed

+318
-56
lines changed

UnityMcpBridge/Editor/Helpers/GameObjectSerializer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ public static object GetComponentData(Component c, bool includeNonPublicSerializ
360360
Type propType = propInfo.PropertyType;
361361
AddSerializableValue(serializablePropertiesOutput, propName, propType, value);
362362
}
363-
catch (Exception ex)
363+
catch (Exception)
364364
{
365-
// Debug.LogWarning($"Could not read property {propName} on {componentType.Name}: {ex.Message}");
365+
// Debug.LogWarning($"Could not read property {propName} on {componentType.Name}");
366366
}
367367
}
368368

@@ -383,9 +383,9 @@ public static object GetComponentData(Component c, bool includeNonPublicSerializ
383383
Type fieldType = fieldInfo.FieldType;
384384
AddSerializableValue(serializablePropertiesOutput, fieldName, fieldType, value);
385385
}
386-
catch (Exception ex)
386+
catch (Exception)
387387
{
388-
// Debug.LogWarning($"Could not read field {fieldInfo.Name} on {componentType.Name}: {ex.Message}");
388+
// Debug.LogWarning($"Could not read field {fieldInfo.Name} on {componentType.Name}");
389389
}
390390
}
391391
// --- End Use cached metadata ---

0 commit comments

Comments
 (0)