- Home /
Question by
falantar14 · Oct 21, 2014 at 04:32 PM ·
uiguiunity 4.6
Unity 4.6 UI - Image type conflict
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?
Comment
Best Answer
Answer by g8minhquan · Oct 21, 2014 at 04:44 PM
Have you tried this:
GetComponent<UnityEngine.UI.Image> ();
Excellent, hadn't thought of that. $$anonymous$$any thanks!