Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Component:RigTool

The Rig Tool is a tool for building rigs, auto weight-painting meshes and setting up inverse kinematics solvers.
Component image 
Rig Tool component as seen in the Scene Inspector

The Rig Tool component is the tool that powers the Rig Tool. It lets a user build a Rig bone by bone in the world, turn a static mesh into a skinned mesh by auto weight-painting it against a rig, and set up a FABRIK Chain or TrigonometricIK solver on the result.

This page describes the component and its fields. For a walkthrough of using the tool, see Rig Tool.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
CurrentRig Rig The rig the tool is currently editing. It is set when a new rig is created or when a Rig component is selected, and cleared by Deselect Rig.
IK_Chain FABRIK_Chain The FABRIK chain on the current rig, if one exists. Selecting a rig fills this by searching the rig's slot hierarchy for a chain that uses one of the rig's bones. While it is set, bones that are added to the rig are also added to the chain.
TrigIK TrigonometricIK The TrigonometricIK solver on the current rig, if one exists. It is found the same way as IK_Chain.
SelectedBone RigBoneProxy The bone that is currently selected. It is drawn in yellow, other bones in cyan. New bones are created as children of this bone.
IK_EffectorTemplate Slot Template slot that is used to create an effector for a bone of a FABRIK chain. By default it is an inactive, grabbable orange sphere under the tool.

Usage

The Rig Tool uses the laser, and its tip is 10 cm in front of the tool. Its context menu changes with the state of the tool: the entries below only appear when they apply.

Creating and selecting a rig

  • Create New Rig deselects any current rig, creates a slot named Rig at the tip of the tool with a Rig component on it, and starts the first bone.
  • To edit an existing rig, hold a Rig component (for example from an inspector) and press secondary. Every bone of that rig gets a RigBoneProxy component so it can be selected.
  • Deselect Rig removes the bone proxies from the rig again and clears CurrentRig.

Editing bones

  • Primary press creates a new bone as a child of the selected bone and selects it. While primary is held, the bone follows the tip of the tool, and it is rotated to look away from its parent.
  • Secondary press on a bone (aim the laser at it or put the tip inside) selects it, which allows branches. Pressing secondary at nothing deselects the bone.
  • Destroy Bone removes the selected bone, and its children are reparented to its parent. It only appears while a bone is selected.
  • Open Inspector opens an inspector on the current rig.

Auto weight-painting

With a rig selected, hold a MeshRenderer and press secondary. The mesh is auto-rigged against the current rig, which converts it into a skinned mesh.

Inverse kinematics

These entries only appear when the current rig has no solver yet.

  • Setup FABRIK IK Solver sets up a FABRIK Chain for the rig.
  • Setup Trigonometric IK Solver sets up a TrigonometricIK solver. It also creates two effectors from IK_EffectorTemplate, one for the end bone and one for the bend. It only appears when the rig has exactly three bones (two bone segments).

Once a FABRIK chain exists, releasing primary after creating a bone adds that bone to the chain. With a bone selected:

  • Add Effector creates an effector for the bone from IK_EffectorTemplate. It appears when the bone has no effector.
  • Remove Effector removes it again. It appears when the bone has one.

See Also