From a52c041f47c05784e7b328398e9da576109be40b Mon Sep 17 00:00:00 2001 From: geondo55 <102933884+geondo55@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:27:49 +0900 Subject: [PATCH] =?UTF-8?q?Run=20=EB=AA=A8=EB=93=9C=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=ED=95=98=EC=9D=B4=EC=96=B4=EB=9D=BC=ED=82=A4=20=EC=B0=BD=20?= =?UTF-8?q?=EB=82=B4=EB=B6=80=20=EC=A1=B0=EC=9E=91=EC=9D=B4=20=EB=B6=88?= =?UTF-8?q?=EA=B0=80=EB=8A=A5=20=ED=95=98=EA=B2=8C=EB=81=94=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Studio/UI/TreeView/HierarchyPooledScrollView.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Assets/Scripts/Studio/UI/TreeView/HierarchyPooledScrollView.cs b/Assets/Scripts/Studio/UI/TreeView/HierarchyPooledScrollView.cs index 28233183..601b7b1f 100644 --- a/Assets/Scripts/Studio/UI/TreeView/HierarchyPooledScrollView.cs +++ b/Assets/Scripts/Studio/UI/TreeView/HierarchyPooledScrollView.cs @@ -72,6 +72,8 @@ namespace Studio.HierarchyTree visibleItemCount = Mathf.CeilToInt(scrollRect.GetComponent().sizeDelta.y / itemHeight) + 1; searchInput.onValueChanged.AddListener(SearchData); + ManagerHub.instance.Get().onRun += DisallowSiblingEdit; + ManagerHub.instance.Get().onStop += AllowSiblingEdit; //searchCancelButton.onClick.RemoveAllListeners(); //searchCancelButton.onClick.AddListener(CancelSearch); @@ -521,5 +523,13 @@ namespace Studio.HierarchyTree RebuildVisibleItems(); } } + private void AllowSiblingEdit() + { + isSiblingEditable = true; + } + private void DisallowSiblingEdit() + { + isSiblingEditable = false; + } } } \ No newline at end of file -- 2.48.1.windows.1