Entity:SetLayerBlendOut
Description
Sets the interval the layer will fully blend out, based on Entity:GetLayerCycle. Setting this above 0 will enable internal blending of Entity:GetLayerWeight.
This function only works on BaseAnimatingOverlay entites!
Enabling this will prevent looping gestures with autokill disabled to be removed with Entity:RemoveGesture or Entity:RemoveAllGestures because layer removal functions mark the layer to decrement Entity:GetLayerWeight and unallocate layer ID in next frames if the layer weight is
0
, but blending functions will still keep manipulating layer weight.
Therefore; before calling layer cleanup functions, make sure both Entity:SetLayerBlendIn and Entity:SetLayerBlendOut are set to 0
.