Skip to main content

TwistRelaxerControllerHelper

A class in Root.Township, Alta.Character.

Editor helper for TwistRelaxerController that adds twist relaxers to a list of bones.

Constructors​

MemberWhat it is
TwistRelaxerControllerHelper()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private List<TwistRelaxerSetting> bonesToBeRelaxedBacking field for BonesToBeRelaxed.
private bool isSettingUpRelaxersInspector button that runs SetupTwistRelaxers.

Properties​

MemberWhat it is
List<TwistRelaxerSetting> BonesToBeRelaxed { get; }The bones to relax, each with its weight and parent to child crossfade.

Methods​

MemberWhat it is
void SetupTwistRelaxers()Adds or gets a TwistRelaxer on each bone, sets it up so the controller updates it, and gives the list to the controller.
protected override void OnValidate()Runs SetupTwistRelaxers when the inspector button is pressed.

Used in​

Members of other types that take, return or hold a TwistRelaxerControllerHelper: