Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create

Creates an AnimationLayerMixerPlayable in the PlayableGraph.
Read time 1 minuteLast updated 8 days ago

Definition

Create(PlayableGraph, int)

public static AnimationLayerMixerPlayable Create(PlayableGraph graph, int inputCount = 0)

Parameters

The PlayableGraph that will contain the new AnimationLayerMixerPlayable.

inputCount

The number of layers.

Returns

Create(PlayableGraph, int, bool)

public static AnimationLayerMixerPlayable Create(PlayableGraph graph, int inputCount, bool singleLayerOptimization)

Parameters

The PlayableGraph that will contain the new AnimationLayerMixerPlayable.

inputCount

The number of layers.

singleLayerOptimization

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