Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[5.2] UI Image - NullReferenceException

Discussion in 'UGUI & TextMesh Pro' started by SirHamsteyr, Sep 12, 2015.

  1. SirHamsteyr

    SirHamsteyr

    Joined:
    Mar 4, 2014
    Posts:
    4
    I just updated my Unity to 5.2, and suddenly all my scripts that access the Image component of an object using the GetComponent<Image>() doesn't work :( Either they don't do anything (transform, scale, etc etc) or if I try to do something like disable the component altogether using something like an imageComp.enabled = false, I get a nice big NullReferenceException.

    Is anyone else getting this same issue with Unity? At least if I know that I'm not alone on this, hopefully the Unity team will be swift with kicking out a hotfix.
     
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    It almost sounds like the UnityUI dll isn't loading properly for you or something. are you able to do anything with the UI system?