Preview Mode
Preview Mode is an animator parameter that indicates whether the user is currently previewing your avatar in the VRChat menu. Your Animator Controller can use this parameter to play a specific animation to make your avatar preview look more appealing.
Usage
To set up a preview mode animation for your avatar, follow the steps below:
- Open your existing Base (Locomotion) Animator Controller.
- If you do not have a Base layer set up in your Avatar descriptor, you can copy the existing Animator Controller provided by VRChat. It is located under
Packages/VRChat SDK Avatars/Samples/AV3 Demo Assets/Animation/Controllers/vrc_AvatarV3LocomotionLayer
. Copy this animator controller into your assets and assign it to theBase
slot of your Avatar Descriptor.
- If you do not have a Base layer set up in your Avatar descriptor, you can copy the existing Animator Controller provided by VRChat. It is located under
- Create a new Animator parameter of type
Int
and name itPreviewMode
.
- Create an Animation Clip to house your preview animation, choose a name (e.g.,
PreviewOn
), and drag it into the Animator Controller. - Set up a transition between the
Standing
locomotion blend tree (usually the Default state, marked in orange) to thePreviewOn
state, and set the condition to "PreviewMode
Equals 1". Uncheck the "Has Exit Time" checkbox.
- Create another Transition in reverse from
PreviewOn
toStanding
and set the condition to "PreviewMode
equals 0". Uncheck the "Has Exit Time" checkbox.
- The final setup should look something like this:
- Now assign your Base Animator Controller to the
Controller
slot of your Avatar's Animator component, and set up the animation to your preference.
caution
Please note that Material swapping animations do not work correctly when previewed in the menu. However, you can still do most other things like toggling objects, or adjusting BlendShapes.
- When you're done - you can Build & Test your avatar.
- When you preview your avatar in the "Other" section of the Avatars list - you should see it animate into the pose you set up in the
PreviewOn
Animation Clip.
You can use different kinds of animations for the preview mode, so feel free to experiment.