//Image不规则检测,例如Button需求是个多边形,但是图片是正方形,其余部分是空白..
//图片中 Advanced -Read/Write Enable必须勾选
GetComponent<Image>().alphaHitTestMinimumThreshold = 0.1f;
Unity Image不规则检测
猜你喜欢
转载自blog.csdn.net/qq_36592993/article/details/92836794
今日推荐
周排行