FairyGUI.ScrollPane.UpdateClipSoft C# (CSharp) Method

UpdateClipSoft() private method

private UpdateClipSoft ( ) : void
return void
        internal void UpdateClipSoft()
        {
            Vector2 softness = _owner.clipSoftness;
            if (softness.x != 0 || softness.y != 0)
            {
                _maskContainer.clipSoftness = new Vector4(
                    //左边缘和上边缘感觉不需要效果,所以注释掉
                    (_xPerc < 0.01 || !_softnessOnTopOrLeftSide) ? 0 : softness.x,
                    (_yPerc < 0.01 || !_softnessOnTopOrLeftSide) ? 0 : softness.y,
                    (_xOverlap == 0 || _xPerc > 0.99) ? 0 : softness.x,
                    (_yOverlap == 0 || _yPerc > 0.99) ? 0 : softness.y);
            }
            else
                _maskContainer.clipSoftness = null;
        }