Follower => Distance

Set

Set the follower distance on the branch.

 public static void Follower_Set_Distance(Follower follower, float progress)

Example:

SPData sPData;
GameObject followerGo;
public void Start()
{
sPData =GetComponent<SplinePlus>().SPData;
//Access follower with index 0
Follower follower = sPData.Followers[0];

//set follower distance to 0
SplinePlusAPI.Follower_Set_Distance( follower, 0);
}

Get

Get the follower distance on the branch.

 public static float Follower_Get_Distance(Follower follower)

Example:

 SPData sPData;
 GameObject followerGo;
 public void Start()
 {
 sPData =GetComponent<SplinePlus>().SPData;
 //Access follower with index 0
 Follower follower = sPData.Followers[0];

 //Get follower distance
 Debug.Log(SplinePlusAPI.Follower_Get_Distance( follower));
 }