- Home /
disable mmb and rmb raycast on ColorPicker
Hi, i have this project, where i need to use mouse only.
Mouse buttons:
lmb - submit, enter
rmb - cancel, exit
mmb - nothing (yet)
I use "uGUI Color Picker - Free Version - uCPf" from asset store. The problem is - when i exit from color picker and the pointer is over pick area or hue slider then before exiting - a new color value gets picked by rmb.
On gui buttons all works as supposed to.
Is there a way to ignore mmb and rmb ray casting on Color Picker?
As a rule, don't expect help with third-party assets, but this sounds simple enough. We need to see your code, their code, and perhaps a screenshot, because some of your language used here makes the situation confusing.
I'm confident this is possible, but it may require implementing your own raycasting function which can side-step Unity's native uGUI raycasting system to include custom rules.