首页 > 编程语言 > 详细

unity 透明图片 Button 按钮 实现 点击透明区域时无效

时间:2019-10-15 18:03:19      阅读:493      评论:0      收藏:0      [点我收藏+]
Image image = GetComponent<Image>();
image.alphaHitTestMinimumThreshold = 0.1f;

 图片要求,  透明图片设置为精灵图, 不透明区域要填充整张图片,    当图片不符合要求时  , 可以用精灵图片的剪裁工具, 处理  。

unity 透明图片 Button 按钮 实现 点击透明区域时无效

原文:https://www.cnblogs.com/G993/p/11679041.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!