[Unity] UI 롱 클릭 이벤트 처리 with UniRx
Unity/UI 2024. 6. 11. 10:23[Unity] UI 롱 클릭 이벤트 처리 with UniRx

짧은 글  `ObservableLongPointerDownTrigger.cs`- 판정을 원하는 UI오브젝트에 컴포넌트로 추가using System;using System.Collections;using System.Collections.Generic;using UnityEngine;using UniRx;using UniRx.Triggers;using UnityEngine.EventSystems;public class ObservableLongPointerDownTrigger : ObservableTriggerBase, IPointerDownHandler, IPointerUpHandler{ public float IntervalSecond = 1f; Subject onLongPointerDown..

image