Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetLayerAdditive(uint, bool)

Specifies whether a layer is additive or not. Additive layers blend with previous layers.
Read time 1 minuteLast updated 12 days ago

Definition

public void SetLayerAdditive(uint layerIndex, bool value)

Parameters

layerIndex

The layer index.

value

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

Remarks

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