using UnityEngine; using UnityEngine.UI; public class IrregularButtonAlpha : MonoBehaviour { private Image m_TestImage; private void Awake() { m_TestImage = this.transform.GetComponent(); m_TestImage.alphaHitTestMinimumThreshold = 0.1f; } }