From ece3b56a02180942adb1b35417667eb8b296473f Mon Sep 17 00:00:00 2001 From: Alexander Filippov Date: Mon, 1 Apr 2024 06:37:01 +0200 Subject: [PATCH] Added support for link areas. --- Runtime/SplineImporter.cs | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Runtime/SplineImporter.cs b/Runtime/SplineImporter.cs index 7e1d91a..45f6ff0 100644 --- a/Runtime/SplineImporter.cs +++ b/Runtime/SplineImporter.cs @@ -76,6 +76,7 @@ namespace FrameJosh.SplineImporter endPoint = endHit.position; link.startPoint = startPoint; link.endPoint = endPoint; + link.area = NavMesh.GetAreaFromName(splineImporter.area); Undo.RegisterCreatedObjectUndo(go, $"Create link from {startPoint} to {endPoint}"); #endif } @@ -146,8 +147,8 @@ namespace FrameJosh.SplineImporter { #if UNITY_EDITOR public TextAsset splineData; - public float3 scale = new(1f, 1f, 1f); + public string area = "Walkable"; #endif } #if UNITY_EDITOR diff --git a/package.json b/package.json index 628bec1..3a66fcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ru.shazbot.spline-importer", - "version": "3.0.0", + "version": "3.1.0", "displayName": "Spline Importer", "description": "Import and export splines between Blender and Unity.", "unity": "2021.3",