Skip to main content

BoneWeightTestsMenuAction

A class in Root.Township, Alta.QuickAccessActions.

Developer quick access action that cycles through skin weight and skinned mesh quality presets for testing. Client only.

Constructors​

MemberWhat it is
BoneWeightTestsMenuAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private int currentSettingsIndex of the applied preset, -1 for the default.
private const SkinWeights defaultWeightsFour bones, the weights restored after the last preset.
private BoneWeightTestsMenuAction.Settings[] settingsThe presets to cycle through.

Properties​

MemberWhat it is
override bool IsActive { get; }Always false.
override bool IsValid { get; }Always true.

Methods​

MemberWhat it is
override void Run(Controller controller)Applies the next preset and shows its name; after the last one, resets to four bones and auto quality.
1 private and internal method
MemberWhat it is
private static void SetWeight(SkinWeights weight)Sets Unity's global QualitySettings.skinWeights.