标签:col com component span engine 点击 min mon 挂载
using UnityEngine; using UnityEngine.UI; public class IrregularButton : MonoBehaviour { void Awake () { // 设置阈值 Image image = GetComponent<Image>(); image.alphaHitTestMinimumThreshold = 0.1f; } }
挂载该脚本在异性按钮即可
标签:col com component span engine 点击 min mon 挂载
原文地址:https://www.cnblogs.com/VR-1024/p/9815445.html