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
| Member | What it is |
|---|
BoneWeightTestsMenuAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private int currentSettings | Index of the applied preset, -1 for the default. |
private const SkinWeights defaultWeights | Four bones, the weights restored after the last preset. |
private BoneWeightTestsMenuAction.Settings[] settings | The presets to cycle through. |
Properties
| Member | What it is |
|---|
override bool IsActive { get; } | Always false. |
override bool IsValid { get; } | Always true. |
Methods
| Member | What 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
| Member | What it is |
|---|
private static void SetWeight(SkinWeights weight) | Sets Unity's global QualitySettings.skinWeights. |