Unity3D/UGUI
[펌] UGUI Image 버튼 영역(Collider) 크기 지정
blueasa
2018. 12. 12. 21:08
using UnityEngine;
using System.Collections;
using UnityEngine.UI; // Required when Using UI elements.
public class AlphaButton : MonoBehaviour
{
public float AlphaThreshold = 0.1f;
void Start()
{
this.GetComponent<Image>().alphaHitTestMinimumThreshold = AlphaThreshold;
}
}
[출처] https://answers.unity.com/questions/821613/unity-46-is-it-possible-for-ui-buttons-to-be-non-r.html
[참조] http://www.devkorea.co.kr/bbs/board.php?bo_table=m03_qna&wr_id=68902
반응형