using System.Collections;
public class example : MonoBehaviour {
public Texture aTexture;
void OnGUI() {
if (!aTexture) {
Debug.LogError( "Assign a Texture in the inspector.");
return;
}
GUI.DrawTexture( new Rect(10, 10, 60, 60), aTexture, ScaleMode.ScaleToFit, true, 10.0F);
}
}