unity版本 溢出处理原本是隐藏 ,通过代码改成可见不生效 ,实际还是隐藏。

编辑器里设置的溢出隐藏,使用过程中有些情况要修改成可见。SetupOverflow(OverflowType.Visible) 这些写不生效。我看源码是没有去除 rootContainer.clipRect 
已邀请:

谷主

赞同来自:

没有提供api修改这个。

One

赞同来自:

else if (this._rectMask) {
            s_vec2.set(pt);
            s_vec2.x += this._container.position.x;
            s_vec2.y += this._container.position.y;
            let clippingSize: Size = this._container._uiProps.uiTransformComp.contentSize;
            if (s_vec2.x < 0 || s_vec2.y < 0 || s_vec2.x >= clippingSize.width || s_vec2.y >= clippingSize.height)
                return null;
        }
 
请问把这个代码删掉,不让它走进去判断,可以吗@谷主
 

要回复问题请先登录注册