Summary
A list of
Animancer.AnimancerLayer
s with methods to control their mixing and masking.- Assembly
- Animancer
.dll - Namespace
- Animancer
- Interfaces
-
- IEnumerable
<AnimancerLayer> - I
Animation Clip Collection
- IEnumerable
- Base Types
-
- Object
- Derived Types
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IEnumerable<AnimancerLayer>"]
Type-.->Interface1["IAnimationClipCollection"]
click Interface1 "/animancer/api/Animancer/IAnimationClipCollection"
Type["AnimancerLayerList"]
class Type type-node
Derived0["WeightedMaskLayerList"]-->Type
click Derived0 "/animancer/api/Animancer/WeightedMaskLayerList"
Derived1["AnimancerLayerMixerList"]-->Type
click Derived1 "/animancer/api/Animancer/AnimancerLayerMixerList"
Syntax
public abstract class AnimancerLayerList : IEnumerable<AnimancerLayer>, IAnimationClipCollection
Remarks
The default implementation of this class is
Animancer.AnimancerLayerMixerList
.
Documentation:
Layers
Constructors
Name | Summary |
---|---|
AnimancerLayerList |
Creates a new Animancer.AnimancerLayerList . |
Fields
Name | Constant Value | Summary |
---|---|---|
Graph |
The
Animancer.AnimancerGraph containing this list. |
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.AnimancerLayerList.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
|
Playable | Playable |
The
UnityEngine.Playables.Playable which blends the layers. |
this[int] | AnimancerLayer |
Returns the layer at the specified index. If it didn't already exist, this method creates it.
|
Methods
Name | Value | Summary |
---|---|---|
Add |
AnimancerLayer |
[Pro-Only] Creates and returns a new
Animancer.AnimancerLayer at the end of this list. |
GatherAnimationClips |
void |
[
Animancer.IAnimationClipCollection ] Gathers all the animations in all layers. |
GetEnumerator |
FastEnumerator |
Returns an enumerator that will iterate through all layers.
|
GetLayer |
AnimancerLayer |
Returns the layer at the specified index.
|
IsAdditive |
bool |
[Pro-Only]
Is the layer at the specified index is set to additive blending?
Otherwise it will override lower layers.
|
SetAdditive |
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 |
void |
[Editor-Conditional] Sets the Inspector display name of the layer at the specified index.
|
SetMask |
void |
[Pro-Only]
Sets an
UnityEngine.AvatarMask to determine which bones the layer at the specified index will affect.
|
SetMinCount |
void |
[Pro-Only]
If the
Animancer.AnimancerLayerList.Count is below the specified `min`, this method increases it to that value.
|
Set |
void |
[Pro-Only]
If the
Animancer.AnimancerLayerList.DefaultCapacity is below the specified `min`, this method increases it to that value.
static
|