When I add a ui-image to a panel, the “Source Image” in Unity3d says none (Sprite).
However, if I try changing the picture in the C# script with this:
cellPicture = Resources.Load<Sprite>("Brick");
I get "Cannot implicitly convert type ‘UnityEngine.Sprite’ to ‘UnityEnging.UI.Image’.
I was thinking then, well I’ll give it type image using this:
cellPicture = Resources.Load<Image>("Brick");
and the compiler error goes away, but the image is not applied.
Also, am I restricted to only png files or can I also use jpgs in the ResourceLoad? I’ve got both in there working out this issue…