滑动条复位
API:verticalNormalizedPosition
ScrollRect ZiRanZaiHaione;
ZiRanZaiHaione=GameObject.Find("Canvas").transform.Find("secondStageLayerDiLiHuangJin/diLiNatureStayerLayer/ziRanZaiHai/introduce/ContentScrollView/shuiZaiScrollView/Scroll View").GetComponent<ScrollRect>();
ZiRanZaiHaione.verticalNormalizedPosition = 1f;
根据∝值点击 透明通道无法点击
APi:alphaHitTestMinimumThreshold
private Image image;
image.alphaHitTestMinimumThreshold = 0.1f;
网友评论