Can we use it? How do you get the animation to actually show up in VRC build?
If we can’t use this, is there another tool similar that does work? Im super lazy. Thanks for listening!
I may have found a way to use splines for animation, but it takes a little extra work. However, it does allow you to use the feature for pathing then can delete the spline after the animation is created.
Record the Spline Animation:
- The Spline Animate component automatically handles movement along the spline in the Unity Editor, but for VRChat, you need to convert this motion into an animation clip to integrate with the objects Animator Controller.
- Open the Animation window (Window > Animation > Animation).
- Select the GameObject with the Spline Animate component.
- Create a new Animation Clip (Create > Animation Clip) in your Assets folder (e.g., name it “SplineMotion”).
- In the Animation window, enable recording mode (red record button).
- Scrub through the timeline, and Unity will record the GameObject’s position and rotation as it follows the spline.
- Save the animation clip.
Set Up the Animator Controller
Create an Animator Controller (Assets > Create > Animator Controller) and name it (e.g., “SplineController”).
- Open the Animator Controller in the Animator window.
- Drag the “SplineMotion” animation clip into the Animator to create a new state.
- Create a parameter to trigger the animation (e.g., a Bool named “PlaySpline” or a Trigger named “StartSpline”):
- In the Animator’s Parameters tab, click + > Bool or + > Trigger, and name it.
- Add a transition from the Entry state to the “SplineMotion” state.
- Set the condition for the transition (e.g., “PlaySpline is true” or “StartSpline” for a trigger).
- If looping, ensure the state loops or create a transition back to itself. If not looping, add a transition back to an idle state when “PlaySpline is false” or after the trigger.
Configure Write Defaults:
- In the Animator Controller, select each state and set Write Defaults to Off in the Inspector. VRChat recommends keeping Write Defaults consistent (all Off or all On) to avoid unexpected behavior. VRChat’s built-in animators use Write Defaults Off.
1 Like