LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

AnimationLayerMixerPlayable.SetLayerAdditive

public void SetLayerAdditive(uint layerIndex, bool value);

Parameters

layerIndexThe layer index.
valueWhether the layer is additive or not. Set to true for an additive blend, or false for a regular blend.

Description

Specifies whether a layer is additive or not. Additive layers blend with previous layers.

By default, layers are not additive and override the animation from previous layers.