Hi everyone,
I would like to ask you how i can load on Raw Image texture from url.
This code doesn’t work for me
private string url = "www.mydomain.com/images/image.jpg";
public loadTheImage(){
RawImage theRawImage = (RawImage)gameObject.GetComponent(typeof(RawImage));
theRawImage.texture = url;
}
it gives this error “error CS0029: Cannot implicitly convert type string' to
UnityEngine.Texture’”
Any idea.
Thank you in advance
ki_ha1984