Hello I have a script and I use..
void Awake() {
UICamera.fallThrough = gameObject;
}
to pick up everything that the UI misses. Problem is that..
void OnHover(bool isOver) {
...
}
is receiving [isOver=true] whenever the mouse is clicked, as opposed to only when the mouse enters/leaves the 3D world.
luckily the OnHover is fired immediately after OnPress so I can do this work around..
bool isPressed;
void OnPress(bool isDown) {
isPressed = true;
}
void OnHover(bool isOver) {
if(isPressed) {
isPressed = false;
return;
}
}
This unexpected behavior is a bug right? It took me a few hours to track it down as it was not breaking my code, only making it act strangely in certain cases.