From e2c40827bf2b376430274befcfd16b0ebeed0a52 Mon Sep 17 00:00:00 2001 From: dal4segno Date: Fri, 13 Feb 2026 15:36:59 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B1=B4=EB=AC=BC=20Ghost=EA=B0=80=20=EB=8B=A4?= =?UTF-8?q?=EB=A5=B8=20=EC=98=A4=EB=B8=8C=EC=A0=9D=ED=8A=B8=EC=99=80=20?= =?UTF-8?q?=EC=B6=A9=EB=8F=8C=ED=95=98=EC=97=AC=20=EB=B0=80=EC=96=B4?= =?UTF-8?q?=EB=82=B4=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/BuildingPlacement.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Assets/Scripts/BuildingPlacement.cs b/Assets/Scripts/BuildingPlacement.cs index ba0ad4c..0a04737 100644 --- a/Assets/Scripts/BuildingPlacement.cs +++ b/Assets/Scripts/BuildingPlacement.cs @@ -312,6 +312,12 @@ namespace Northbound collider.enabled = false; } + // Disable NavMeshObstacles in preview (they act as obstacles for NavMeshAgent) + foreach (var obstacle in previewObject.GetComponentsInChildren()) + { + obstacle.enabled = false; + } + Debug.Log($"[BuildingPlacement] 프리뷰 생성됨: {data.buildingName}"); } @@ -528,6 +534,12 @@ namespace Northbound collider.enabled = false; } + // Disable NavMeshObstacles in preview (they act as obstacles for NavMeshAgent) + foreach (var obstacle in preview.GetComponentsInChildren()) + { + obstacle.enabled = false; + } + dragPreviewObjects.Add(preview); if (isValid)