Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

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.

Did you find this page useful? Please give it a rating: