#Splines

1 messages · Page 1 of 1 (latest)

quiet cliff
#

Hey everybody! Is anybody familliar with Splines?

I am trying to make use of Splines to have my AI enemies follow bezier curved paths.

SplinePathwinder.cs

using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Splines;

namespace EZLerps
{
    public class SplinePathwinder : EZLerp
    {
        SplineContainer container;
    }
}

UnityEngine.Splines; and SplineContainer container; both give me the error involving namespace or assemblies.

 error CS0234: The type or namespace name 'Splines' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
#

I have the Splines package. I have the dependencies.

#

I have the documentation open in another tab.

#

I can't grab a Spline component, or anything regarding splines EXCEPT for SplineNode which is part of something called TreeEditor

#

Oh that is literally for editing trees.

#

I can create a Spline in the editor.

#

I just can't grab the component use any of its pieces like knots, etc