- Home /
Keydown and OnMouseEnter conflict?
Ok, I have something going on when the mouse enters a plane. I need to have this function running in a combination with right control. It simply does not work. whenever any keyboard buttons is pressed the function OnMouseEnter doesn't work.
Any clue? thanks,
It this still an issue for you? I cannot replicate this problem. I have a plane with the script 'function On$$anonymous$$ouseEnter () {renderer.material.color = Color.red;}function On$$anonymous$$ouseExit () {renderer.material.color = Color.blue;}' and when regardless of what keys I am holding it works. Is it a PC or $$anonymous$$AC? Is it possible that some other program you have running is s$$anonymous$$ling control - maybe your keyboard shortcuts for the language bar or something?
You are right. the problem rested in an if condition which preventing capturing inputs. thanks for the reply:)