Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

OnMouseOver & OnMouseEnter dont work?

$
0
0
(In C#)

im trying to set my game at the moment so when the mouse hovers over a block, it will change the colour, essentially highlighting it
No matter what I try, making sure what the mouse hits is a block and nothing else, it wont change or even debug.log

Examples of what i have tried and nothing has worked:
Code (csharp):
  1.  
  2. void OnMouseOver(){
  3.                if (GameObject.Find ("Manager").GetComponent<Manager> ().hasClicked == false) {
  4.            
  5.                         Debug.Log ("Over");...
OnMouseOver & OnMouseEnter dont work?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>