Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Wumpee on November 26, 2014, 03:49:57 PM
Title:
Prevent right mouse button from dragging UIDragObject
Post by:
Wumpee
on
November 26, 2014, 03:49:57 PM
What is the correct way to prevent the right mouse button from dragging an object with a UIDragObject component on it?
Title:
Re: Prevent right mouse button from dragging UIDragObject
Post by:
ArenMook
on
November 26, 2014, 08:42:37 PM
Modify the script and add a check at the top of its OnPress() function:
if
(
UICamera
.
currentTouchID
!=
-
1
)
return
;
Title:
Re: Prevent right mouse button from dragging UIDragObject
Post by:
Wumpee
on
November 26, 2014, 08:56:54 PM
Thanks, that's what I'm doing now. I just wasn't sure if there was a better way.