我需要它,因为 image
很小,很难在移动设备上触摸它。所以我需要有更大的可交互区域,但 image
应该保持小。
最佳答案
我相信制作这样的按钮最合适的方法是这样的:
Width
和 Height
按钮,因为您需要命中区域大小。 Vertical Layout Group
按钮的组件。 Padding
的Vertical Layout Group
命中区域和视觉效果之间的理想差异。 Image
组件。设置默认的 alpha Image
分量为零。 Image
至 Target Graphic
领域Button
. 关于Unity3d 新用户界面 : How to set button's interactable zone bigger than the attached image?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28914474/