- Home /
The question is answered, right answer was accepted
C#, Photo Grabber not working in built version
I am using the basic image grabbing script off of the unity documentation. The only problem is when I go and build and run it any object with this script attached to it will no longer render in the built version. It will not work in the standalone player or in the unity web player.
As soon as the app is run each game object is created and assigned all of its data dynamically to get the image. I am pretty much recreating this "Weave"
using UnityEngine;
using System.Collections;
public class PhotoGrabber : MonoBehaviour
{
public string url = "Type Link Here";
IEnumerator Start()
{
WWW www = new WWW(url);
yield return www;
renderer.material.mainTexture = www.texture;
}
}
EDIT: Added Weave EDIT: Made sure url included "Http://"
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
WebPlayer can't handle Unity GUI?! 0 Answers
How to achieve web player like compression in standalone? 2 Answers
Weird game-output! 1 Answer