AnimancerPlayable.

AnimancerPlayable.LayerList Class

Summary

A list of Animancer.AnimancerLayers with methods to control their mixing and masking.
Assembly
Animancer.dll
Namespace
Animancer
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IEnumerable<AnimancerLayer>"] Type-.->Interface1["IAnimationClipCollection"] click Interface1 "/animancer-v7-4/api/Animancer/IAnimationClipCollection" Type["AnimancerPlayable.LayerList"] class Type type-node

Syntax

public class AnimancerPlayable.LayerList : IEnumerable<AnimancerLayer>, IAnimationClipCollection

Remarks

Documentation: Layers

Constructors

Name Summary
LayerList(AnimancerPlayable) Creates a new Animancer.AnimancerPlayable.LayerList.

Fields

Name Constant Value Summary
LayerMixer
The UnityEngine.Animations.AnimationLayerMixerPlayable which blends the layers.
Root
The Animancer.AnimancerPlayable at the root of the graph.

Properties

Name Value Summary
AverageVelocity Vector3
The average velocity of the root motion of all currently playing animations, taking their current Animancer.AnimancerNode.Weight into account.
Capacity int
[Pro-Only] The maximum number of layers that can be created before an System.ArgumentOutOfRangeException will be thrown. The initial capacity is determined by Animancer.AnimancerPlayable.LayerList.DefaultCapacity.
Count int
[Pro-Only] The number of layers in this list.
DefaultCapacity int
[Pro-Only] The maximum number of layers that can be created before an System.ArgumentOutOfRangeException will be thrown (default 4).

Lowering this value will not affect layers that have already been created.
static
this[int] AnimancerLayer
Returns the layer at the specified index. If it didn't already exist, this method creates it.

Methods

Name Value Summary
Activate(AnimancerPlayable) void
[Pro-Only] Sets the Animancer.AnimancerPlayable.Layers and assigns the main UnityEngine.Playables.Playable of this list.
Activate(AnimancerPlayable, Playable) void
[Pro-Only] Sets this list as the Animancer.AnimancerPlayable.Layers and the UnityEngine.Playables.Playable used to mix them.
Add() AnimancerLayer
[Pro-Only] Creates and returns a new Animancer.AnimancerLayer at the end of this list.
GatherAnimationClips(ICollection<AnimationClip>) void
[Animancer.IAnimationClipCollection] Gathers all the animations in all layers.
GetEnumerator() FastEnumerator<AnimancerLayer>
Returns an enumerator that will iterate through all layers.
GetLayer(int) AnimancerLayer
Returns the layer at the specified index.
IsAdditive(int) bool
[Pro-Only] Is the layer at the specified index is set to additive blending? Otherwise it will override lower layers.
SetAdditive(int, bool) void
[Pro-Only] Sets the layer at the specified index to blend additively with earlier layers (if true) or to override them (if false). Newly created layers will override by default.
SetDebugName(int, string) void
[Editor-Conditional] Sets the Inspector display name of the layer at the specified index.
SetMask(int, AvatarMask) void
[Pro-Only] Sets an UnityEngine.AvatarMask to determine which bones the layer at the specified index will affect.
SetMinCount(int) void
[Pro-Only] If the Animancer.AnimancerPlayable.LayerList.Count is below the specified `min`, this method increases it to that value.
SetMinDefaultCapacity(int) void
[Pro-Only] If the Animancer.AnimancerPlayable.LayerList.DefaultCapacity is below the specified `min`, this method increases it to that value.
static