Hi,
I’m new to Unity and i’m sure this is a really simple but…this code give me this error and I can’t find why since RawImage is class from Unity UI :
error CS0246: The type or namespace name `RawImage’ could not be found. Are you missing a using directive or an assembly reference?
using UnityEngine;
using System.Collections;
public class get_web_images : MonoBehaviour {
public string url = "http://images.earthcam.com/ec_metros/ourcams/fridays.jpg";
// Use this for initialization
IEnumerator Start () {
RawImage ri;
ri = gameObject.AddComponent<RawImage>();
}
}
thanks