I’m trying to access an Image by script in C#. I’ve included UnityEngine.UI but it seems like there is another Image class that it’s conflicting with. It’s not in any of my scripts. When I look for where it’s declared, it sends me to the Assembly Browser. Because of this conflict I can’t access the actual UI Image class that I want to. Any ideas?
Have you tried this:
GetComponent<UnityEngine.UI.Image> ();