List
Error - 'Image' is an abiguous reference between 'UnityEngine.UI.Image' and 'maxstAR.Image'
Posted Date: 2017-12-15 5:59     Edited Date: 2017-12-15 8:23     Writer: inactive

Hi,

Just want to inform you that our team has found this error when getting UI image component from a canvas object.

the script (truncated):

someGameObject.GetComponent<Image>().sprite

Error:


 

For those who found the same error, just use the workaround by directly refer Unity.UI.Image like so:

someGameObject.GetComponent<UnityEngine.UI.Image>().sprite

But we suggest that maxst should change the Maxst.Image name to avoid conflict with Unity UI.Image.

Thanks

Posted Date: 2017-12-15 8:23     Edited Date: 2017-12-15 8:23     Writer: inactive

Thank you very much for your feedback.

Yes, it's our mistake to make same class name.

We will modity that class name at next update.

- Maxst support team