From 46d7271e3db9e16b6cbe36463a3b334467b372fb Mon Sep 17 00:00:00 2001 From: Scriptwonder <1300285021@qq.com> Date: Fri, 25 Jul 2025 02:32:19 -0400 Subject: [PATCH] Update ManageGameObject.cs Update with added comments --- UnityMcpBridge/Editor/Tools/ManageGameObject.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UnityMcpBridge/Editor/Tools/ManageGameObject.cs b/UnityMcpBridge/Editor/Tools/ManageGameObject.cs index cb7b714..d6aa9f8 100644 --- a/UnityMcpBridge/Editor/Tools/ManageGameObject.cs +++ b/UnityMcpBridge/Editor/Tools/ManageGameObject.cs @@ -1793,6 +1793,7 @@ namespace UnityMcpBridge.Editor.Tools /// private static string[] SplitPropertyPath(string path) { + // Handle complex paths with both dots and array indexers List parts = new List(); int startIndex = 0; bool inBrackets = false; @@ -1811,6 +1812,7 @@ namespace UnityMcpBridge.Editor.Tools } else if (c == '.' && !inBrackets) { + // Found a dot separator outside of brackets parts.Add(path.Substring(startIndex, i - startIndex)); startIndex = i + 1; }