WeightedMaskLayers Class

Summary

Replaces the default Animancer.AnimancerLayerMixerList with a Animancer.WeightedMaskLayerList.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["WeightedMaskLayers"] class Type type-node

Syntax

[AddComponentMenu(Strings.MenuPrefix + "Weighted Mask Layers")]
[AnimancerHelpUrl(typeof(WeightedMaskLayers))]
[DefaultExecutionOrder(-10000)]
public class WeightedMaskLayers : MonoBehaviour

Attributes

Type Description
AddComponentMenu
AnimancerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Animancer's documentation.
DefaultExecutionOrder

Properties

Name Value Summary
Animancer AnimancerComponent
[UnityEngine.SerializeField] The component to apply the layers to.
Definition WeightedMaskLayersDefinition
[UnityEngine.SerializeField] The definition of transforms to control and weights to apply to them.
Indices int[]
The index of each of the Animancer.WeightedMaskLayersDefinition.Transforms.
Layers WeightedMaskLayerList
The layer list created at runtime and assigned to Animancer.AnimancerGraph.Layers.

Methods

Name Value Summary
Awake() void
Initializes the Animancer.WeightedMaskLayers.Layers and applies the default group weights.
FadeWeights(int, float, Func<float, float>) void
Fades the weights towards the specified group.
OnValidate() void
Finds the Animancer.WeightedMaskLayers.Animancer reference if it was missing.
SetWeights(int) void
Applies the weights of the specified group.