Spline Plus
Create
//Create Spline Plus
public static SPData SplinePlus_Create(Vector3 position)
SPData
//Get your SPData object from your spline plus component
sPData =GetComponent<SplinePlus>().SPData;
//Get your SPData object directly when creating spline plus object through code
sPData = SplinePlusAPI.SplinePlus_Create(new Vector3(0,0,0));
Branches
public static Dictionary<int, Branch> SplinePlus_Get_Branches_List(SPData sPData)
Nodes list
//All nodes List (shared nodes included)
public static List<Node> SplinePlus_Get_Nodes(SPData sPData)
Shared Nodes List
//All shared nodes list
public static List<Node> SplinePlus_Get_All_Shared_Nodes(SPData sPData)
Smoothness
//Set Smoothness
public static void SplinePlus_Set_Smoothness(SPData sPData, int smoothness)
//Get Smoothness
public static int SplinePlus_Get_Smoothness(SPData sPData )
Reference axis
//Set Reference Axis
public static void SplinePlus_Set_Reference_Axis(this SPData sPData, RefAxis axis)
//Get Reference Axis
public static void SplinePlus_Get_Reference_Axis(SPData sPData)