ArmRig
A simple Rig subclass for Unity's Animation Rigging package that exposes a Target transform for arm IK. Runs in both play mode and edit mode.
Definition
Namespace: Paragon.Townskeep.CharacterSystem
Assembly: Townskeep.dll
[ExecuteAlways]
public class ArmRig : RigInheritance: MonoBehaviour → RigBuilder → Rig → ArmRig
Remarks
ArmRig extends Unity's Rig class (from the Animation Rigging package) to add a public Target transform reference. This target is typically used by child rig constraints (e.g., TwoBoneIKConstraint, MultiAimConstraint) to drive arm IK.
The [ExecuteAlways] attribute ensures the rig updates in the editor, allowing animators to preview IK results without entering play mode.
Usage Pattern
Add
ArmRigas a child of aRigBuilderin the character hierarchyAdd IK constraints (e.g.,
TwoBoneIKConstraint) as children of theArmRigSet the
Targettransform to the IK target (e.g., a held item's grip point)Child constraints reference
ArmRig.Targetas their IK target
Quick Lookup
Set IK target
Assign ArmRig.Target to a Transform
Enable/disable arm IK
Set ArmRig.weight (inherited from Rig)
Preview in editor
Enabled by default ([ExecuteAlways])
Fields
Target
The transform that child IK constraints should use as their target position/rotation.
See Also
Unity Animation Rigging package —
Rigbase class documentation
Last updated