Create
Creates an AnimationLayerMixerPlayable in the PlayableGraph.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
Create(PlayableGraph, int)
Creates an AnimationLayerMixerPlayable in the PlayableGraph.
public static AnimationLayerMixerPlayable Create(PlayableGraph graph, int inputCount = 0)
Parameters
Returns
Type | Description |
|---|---|
| AnimationLayerMixerPlayable | A new AnimationLayerMixerPlayable linked to the PlayableGraph. |
Create(PlayableGraph, int, bool)
Creates an AnimationLayerMixerPlayable in the PlayableGraph.
public static AnimationLayerMixerPlayable Create(PlayableGraph graph, int inputCount, bool singleLayerOptimization)
Parameters
The PlayableGraph that will contain the new AnimationLayerMixerPlayable.
The number of layers.
This optimization automatically sets the weight of the first animation layer to 1. Set to true If your layer mixer has a single animation layer and you want to bypass unnecessary weight calculations. This optimization is automatically set to false if your layer mixer has multiple animation layers.
Returns
Type | Description |
|---|---|
| AnimationLayerMixerPlayable | A new AnimationLayerMixerPlayable linked to the PlayableGraph. |