Skip to content

Commit 68efdf1

Browse files
committed
Clean up comment formatting in GameObjectSerializer
1 parent 47bb2c6 commit 68efdf1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

UnityMcpBridge/Editor/Helpers/GameObjectSerializer.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace UnityMcpBridge.Editor.Helpers
1313
/// <summary>
1414
/// Handles serialization of GameObjects and Components for MCP responses.
1515
/// Includes reflection helpers and caching for performance.
16-
/// </summary> tew
16+
/// </summary>
1717
public static class GameObjectSerializer
1818
{
1919
// --- Data Serialization ---
@@ -422,7 +422,7 @@ private static void AddSerializableValue(Dictionary<string, object> dict, string
422422
catch (Exception e)
423423
{
424424
// Catch potential errors during JToken conversion or addition to dictionary
425-
// Debug.LogWarning($"[AddSerializableValue] Error processing value for '{name}' (Type: {type.FullName}): {e.Message}. Skipping.");
425+
Debug.LogWarning($"[AddSerializableValue] Error processing value for '{name}' (Type: {type.FullName}): {e.Message}. Skipping.");
426426
}
427427
}
428428

@@ -505,7 +505,7 @@ private static object ConvertJTokenToPlainObject(JToken token)
505505
// Helper to create JToken using the output serializer
506506
private static JToken CreateTokenFromValue(object value, Type type)
507507
{
508-
if (value == null) return JValue.CreateNull();
508+
if (value == null) return JValue.CreateNull();
509509

510510
try
511511
{
@@ -514,12 +514,12 @@ private static JToken CreateTokenFromValue(object value, Type type)
514514
}
515515
catch (JsonSerializationException e)
516516
{
517-
// Debug.LogWarning($"[GameObjectSerializer] Newtonsoft.Json Error serializing value of type {type.FullName}: {e.Message}. Skipping property/field.");
518-
return null; // Indicate serialization failure
517+
Debug.LogWarning($"[GameObjectSerializer] Newtonsoft.Json Error serializing value of type {type.FullName}: {e.Message}. Skipping property/field.");
518+
return null; // Indicate serialization failure
519519
}
520520
catch (Exception e) // Catch other unexpected errors
521521
{
522-
// Debug.LogWarning($"[GameObjectSerializer] Unexpected error serializing value of type {type.FullName}: {e}. Skipping property/field.");
522+
Debug.LogWarning($"[GameObjectSerializer] Unexpected error serializing value of type {type.FullName}: {e}. Skipping property/field.");
523523
return null; // Indicate serialization failure
524524
}
525525
}

0 commit comments

Comments
 (0)