title: Simple decal system only working in editor
body: <p>I develop Web Player application.
  In scene i have some 3d model (example: box).
  In runtime i upload *.png image an use this image on Decal to my car.
  I use this package: <a href="https://www.assetstore.unity3d.com/en/#!/content/13889" rel="nofollow">https://www.assetstore.unity3d.com/en/#!/content/13889</a> for Decal System.
  I Editor work fine, but in runtime i can't use my picture in decal System.
  task: need at any time replace a picture and it becomes a good in Decal System.
  Please help me.
  Thanks!</p>
  
  <pre><code>public GameObject decal;
  public Material mat;
  Texture2D texTmp;
  Sprite spr;
  string settingsContent;
  string[] settingsSplit;
  
  int texWidth,texHeight;
  
  void Awake()
  {
      StartCoroutine(DownloadSettings());
  }
  
  IEnumerator DownloadSettings()
  {
      WWW www = new WWW("http://585649.workwork.web.hosting-test.net/Logo1/settings.txt");
      yield return www;
      settingsContent = www.text;
      settingsSplit = settingsContent.Split('\n');
      if (www.isDone)
      {
          texWidth = int.Parse(settingsSplit[1]);
          texHeight = int.Parse(settingsSplit[2]);
          texTmp = new Texture2D(texWidth,texHeight);
          StartCoroutine(DownloadLogos());
      }
  }
  
  IEnumerator DownloadLogos()
  {
      WWW www = new WWW(settingsSplit[0]);
      yield return www;
      www.LoadImageIntoTexture(texTmp);
      if (www.isDone)
      {
          spr = Sprite.Create(texTmp, new Rect(0, 0, texTmp.width, texTmp.height), Vector2.zero, 100);
          spr.texture.wrapMode = TextureWrapMode.Clamp;
          mat.mainTexture = spr.texture;
          Color clr = new Color32(255,255,255,255);
          clr.a = float.Parse(settingsSplit[3]);
          mat.color = clr;
          decal.AddComponent("Decal");
          decal.GetComponent&lt;Decal&gt;().material = mat;
          decal.GetComponent&lt;Decal&gt;().sprite = spr;
      }
  }
  </code></pre>