puts ":)"
Dec 10, 2019
[UGUI] Detecting UI Touch
using UnityEngine.EventSystems;
EventSystem.current.IsPointerOverGameObject(int pointerId)
ex) Excluding Touch on UI
Touch touch
=
Input.touches[
0
];
if
(EventSystem.current.IsPointerOverGameObject(touch.fingerId)) {
return
; }
Colored by Color Scripter
cs
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment