Toggle Animation Generator is a Unity Editor Window script that helps create toggle animations for VRC avatars. The script allows you to select an object in your avatar and create animations that can toggle the object on and off, as well as create the necessary parameters, controls, and layers to make the toggle work.
- To open the Toggle Animation Generator, go to Tools > Toggle Animation Generator in the Unity Editor.
- Select the avatar base object that you want to add the toggle to.
- Select the object that you want to animate.
- The Parameter Name and Toggle Name will be automatically generated based on the object you selected.
- Fill in the VRC Avatar Descriptor, Expression Menu, Expression Parameters, and FX Layer fields.
- Set the default toggle values and syncing options in the Expression Parameters Options section.
- Click Select save location and build animations to create the animations and add the necessary parameters, controls, and layers to your avatar.
- Choose a save location for the animations and click Save to complete the process.
Toggle Animation Generator requires Unity 2019.4.29f1 or later and VRC AVATAR SDK3. It also requires the VRC Avatar Descriptor, Expression Menu, Expression Parameters, and FX Layer components to be set up in your avatar.