Follower => Speed
Set
Set the follower speed.
public static void Follower_Set_Speed(Follower follower, float speed)
Example:
SPData sPData; GameObject followerGo; public void Start() { sPData =GetComponent<SplinePlus>().SPData; //Access follower with index 0 Follower follower = sPData.Followers[0]; //set follower speed to 7 SplinePlusAPI.Follower_Set_Speed( follower, 7); }
Get
Get the follower speed.
public static float Follower_Get_Speed(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 speed Debug.Log(SplinePlusAPI.Follower_Get_Speed(follower)); }