Your first toggle
In the picture, 1 is the toggle's Objects list: the objects it turns on and off.
At the end of this page your avatar menu has a Hat toggle. Pressing it shows or hides the hat.
Before you start
Section titled “Before you start”- AvatarDoc is installed in your project. See Install AvatarDoc.
- Your avatar is in the open scene.
- The avatar has an object you want to show and hide. This page uses a hat.
-
In the Hierarchy, select your avatar.
-
In the inspector, press Add Component.
You should now see Unity's list of components, with a search field.
-
Type
AvatarDocand pick AvatarDoc.You should now see the AvatarDoc inspector. Under its menu tree, a welcome card offers a few ways to start. This page uses Make a toggle.
- 1: Make a toggle makes a toggle from one object.
- 2: Start an outfit set opens the outfit set window that Your first outfit selector uses.
- 3: Quick start opens a short guide inside Unity. That window has Open the full guide at the top, which opens this step by step guide on the website.
-
In the welcome card, press Make a toggle.
You should now see a list of the objects on your avatar, with a search field.
-
Type the name of your hat and pick it in the list.
You should now see a toggle named after the hat, selected in the tree. In its panel, the Objects list holds the hat, set to Shown. The welcome card is gone.
Test it
Section titled “Test it”With Gesture Manager, a free tool you can add to your project from VCC:
- In Unity's menu bar, select Tools > Gesture Manager Emulator.
- Press Play. AvatarDoc builds the menu, the same way it does for an upload.
- In the Hierarchy, select GestureManager. Its inspector shows your avatar's menu as a wheel.
- Open Expressions and press your hat's toggle.
The hat starts hidden, because a new toggle starts off. Each press shows or hides it. To start with the hat shown, tick Default on in the toggle's panel.
Without Gesture Manager, upload the avatar and press the toggle in VRChat's Expressions menu.
Your first outfit selector: build a submenu where one outfit is worn at a time.
Docs for AvatarDoc 0.7.1