Added support for link areas.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user