异形按钮点击触发
using UnityEngine;
using UnityEngine.UI;public class IrregularButton : MonoBehaviour { void Awake () {// 設(shè)置閾值Image image = GetComponent<Image>();image.alphaHitTestMinimumThreshold = 0.1f;}
}
掛載該腳本在異性按鈕即可
轉(zhuǎn)載于:https://www.cnblogs.com/VR-1024/p/9815445.html
總結(jié)
- 上一篇: study notes for pyth
- 下一篇: DreamWeaver使用技巧学习心得