Follower => Animation Type
Set
Set the follower animation type,
Auto:
Move follower on spline branches with a defined speed.
Keyboad:
Move follower using keyboard inputs (Arrow keys).
Scene view:
Move follower on spline branches to the closest (scene view/game view) mouse click.
public static void Follower_Set_AnimationType(Follower follower, FollowerAnimation followerAnimation)
Example:
SPData sPData; GameObject followerGo; public void Start() { sPData =GetComponent<SplinePlus>().SPData; //Access follower with index 0 Follower follower = sPData.Followers[0]; //Set follower animation type to auto SplinePlusAPI.Follower_Set_AnimationType( follower, FollowerAnimation.Auto); }
Get
Get the follower animation type,
public static FollowerAnimation Follower_Get_AnimationType(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 animation type Debug.Log(SplinePlusAPI.Follower_Get_AnimationType( follower )); }