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 | |
| Animancer |
[Assert-Conditional]
A UnityEngine.HelpURLAttribute which points to Animancer's documentation.
|
| Default |
Properties
| Name | Value | Summary |
|---|---|---|
| Animancer | AnimancerComponent |
[
UnityEngine.SerializeField] The component to apply the layers to. |
| Definition | Weighted |
[
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 | Weighted |
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 |
void |
Fades the weights towards the specified group.
|
| OnValidate |
void |
Finds the
Animancer.WeightedMaskLayers.Animancer reference if it was missing. |
| SetWeights |
void |
Applies the weights of the specified group.
|