Question by 
               maracepoc · Jul 30, 2017 at 11:06 PM · 
                cameracolliderinputfieldonmouseover  
              
 
              OnMouseOver and Camera Position Incompatibility
Hi,
I am experiencing a weird situation: I've got a simple OnMouseOver my pink collider that when the mouse is over it shows an inputfield and when mouse exits it deactivates the inputfield. I have noticed that this works when the Camera view is set quite low as in image 1(inputfield is off as I moved mouse from pink cube), but when I set the camera higher it seems like the OnMouseOver doesn't recognise the pink collider, image 2. Could you help me solve this? I really need to get an aerial view of the thing, not a 1.8m high camera view... Thank you!
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;
public class mouseover : MonoBehaviour {
 public GameObject comment;
 void OnMouseOver(){        
     comment.SetActive (true);    
 }
 void OnMouseExit(){        
     comment.SetActive(false);    
 }
 
               }

 
                 
                screen-shot-2017-07-31-at-000211.png 
                (348.8 kB) 
               
 
              
               Comment
              
 
               
              Your answer