Creators / Component reference
Avatar tools
Non-destructive helpers that run when the avatar is built.
Object Toggle#
ParelObjectToggle Add Component > ParelVR / Avatar Tools / Object Toggle
One-component on/off toggle. Put it on the thing you want to toggle (or anywhere, and list the objects) and the SDK builds everything you'd otherwise wire by hand: the Expression Parameter, the Expressions Menu button and the FX layer with its On / Off animations.
| Field | Type | Description |
|---|---|---|
| Menu Name | string |
The button's name in the Expressions Menu (empty = this object's name). |
| Menu Folder | string |
Sub menu path for the button, e.g. "Clothing/Hats" (empty = the top of the menu). |
| Icon | Texture2D |
|
| Default On | bool |
On when the avatar is first worn. |
| Saved | bool |
Remember the last setting between sessions. |
| Synced | bool |
Everyone else sees it too. Off = only you see the change. |
| Parameter Name | string |
The Expression Parameter used (empty = made from the menu name). Give toggles the same name to link them. |
| Objects | List<ParelToggledObject> |
Objects to turn on and off. Empty = this object. |
| Blend Shapes | List<ParelBlendShapeChange> |
|
| Material Swaps | List<ParelMaterialSwap> |
Outfit Switcher#
ParelOutfitSwitcher Add Component > ParelVR / Avatar Tools / Outfit Switcher
Switch between whole outfits from one menu: wearing one outfit hides every other. The SDK builds one Int parameter, a sub menu with a button per outfit, and the FX layer that shows the right objects.
| Field | Type | Description |
|---|---|---|
| Menu Name | string |
Name of the sub menu holding the outfit buttons. |
| Menu Folder | string |
Where that sub menu goes, e.g. "Clothing" (empty = the top of the menu). |
| Icon | Texture2D |
|
| Parameter Name | string |
The Expression Parameter used (empty = made from the menu name). |
| Saved | bool |
Remember the last outfit between sessions. |
| Synced | bool |
Everyone else sees the outfit change too. |
| Default Outfit | int |
The outfit worn when the avatar is first put on (0 = the first one). |
| Outfits | List<ParelOutfit> |
Clothing (Merge Armature)#
ParelClothing Add Component > ParelVR / Avatar Tools / Clothing (Merge Armature)
Puts clothing made for this avatar onto it without hand-parenting bones. The clothing's armature is matched to the avatar's by bone name (prefixes like "Shirt_" and suffixes like ".001" are detected) and joined to it when the avatar is built. The clothing in your scene is never changed.
| Field | Type | Description |
|---|---|---|
| Armature Root | Transform |
The clothing's own armature (the object above its Hips bone). Empty = found automatically. |
| Mode | MergeMode |
Merge Bones gives the best performance; Parent To Bones keeps every clothing bone. |
| Bone Prefix | string |
Text in front of the clothing's bone names, e.g. "Shirt_" in "Shirt_Hips". Empty = detected. |
| Bone Suffix | string |
Text after the clothing's bone names, e.g. ".001" in "Hips.001". Empty = detected. |
| Excluded Bones | List<Transform> |
Bones that should stay where they are instead of joining the avatar. |
| Remove Clothing Animator | bool |
Remove an Animator the clothing came with, so it can't fight the avatar's. |
Attach To Bone#
ParelBoneAttachment Add Component > ParelVR / Avatar Tools / Attach To Bone
Attaches this object (a hat, glasses, a prop) to one of the avatar's humanoid bones when the avatar is built, so it follows that bone -- no dragging it into the armature by hand.
| Field | Type | Description |
|---|---|---|
| Bone | HumanBodyBones |
|
| Keep World Pose | bool |
Stay exactly where it is now (on) or snap onto the bone (off). |
Blend Shape Sync#
ParelBlendshapeSync Add Component > ParelVR / Avatar Tools / Blend Shape Sync
Keeps this mesh's blend shapes matching another's -- e.g. a shirt following the body's chest size. Copies the current values, and every animation of the source shapes in the FX layer.
| Field | Type | Description |
|---|---|---|
| Source | SkinnedMeshRenderer |
The mesh to follow (usually the body). |
| Target | SkinnedMeshRenderer |
The mesh that follows. Empty = the Skinned Mesh Renderer on this object. |
| Match All By Name | bool |
Follow every blend shape both meshes have with the same name. |
| Links | List<ParelBlendShapeLink> |
Extra pairs, for shapes named differently on the two meshes. |
