- Home /
 
 
               Question by 
               okandemirkaya · Aug 31, 2021 at 08:45 AM · 
                androiderrorbug  
              
 
              Connect Andorid Phone and get error
I connect android phone to unity and ı get objecte reference not set ınstance error. I do not see line that on error. How I see line that have problem ?
               Comment
              
 
               
              Answer by Riiich · Aug 31, 2021 at 08:52 AM
This means you haven't set a reference to a component in a script
For example:
 public GameObject coolObject;
 
 void Start () {
     coolObject.SetActive(false);
 }
 
               But you forgot to set what coolObject is in the inspector 
I know that but I problem is not this. I set refecense set in ithe inspector and work well on editor but I get error when I build a andorid.
Maybe, that object is destroyed, so your reference is being null.
Your answer