관리 메뉴

有希

UI Event Handler 본문

프로그래밍/UnityEngine기초

UI Event Handler

有希. 2021. 9. 4. 22:56

Action<PointerEventData> OnBeginDragHandler = null;

어떤 이벤트가 발생하는 함수에서 위에처럼 Action으로 등록해둔 녀석을 Invoke 하면서 <T>에 맞는 T를 인자로 넘겨준다.

if(OnBeginDragHandler!=null) OnBeginDragHandler.Invoke(eventData);

 

'프로그래밍 > UnityEngine기초' 카테고리의 다른 글

UI_Manager  (0) 2021.09.04
Extension 클래스  (0) 2021.09.04
UI자동화  (0) 2021.09.04
Button Event  (0) 2021.09.04
UI  (0) 2021.09.04