Add AacFlLayer.WithBlendingMode
This commit is contained in:
@@ -394,6 +394,25 @@ namespace AnimatorAsCode.V1
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user