Add AacFlLayer.WithBlendingMode

This commit is contained in:
Haï~
2024-01-24 18:13:44 +01:00
parent 12b836d0a3
commit 89f176a6d2
@@ -394,6 +394,25 @@ namespace AnimatorAsCode.V1
return this; return this;
} }
// Change the blending mode of this layer.
public AacFlLayer WithBlendingMode(AnimatorLayerBlendingMode blendingMode)
{
var finalFullLayerName = _fullLayerName;
_animatorController.layers = _animatorController.layers
.Select(layer =>
{
if (layer.name == finalFullLayerName)
{
layer.blendingMode = blendingMode;
}
return layer;
})
.ToArray();
return this;
}
} }
public class AacFlBase public class AacFlBase