- Home /
WWW.texture with a wildcard in the URL
Hello everyone,
If you have a webapge with a url to an image that is always slightly changing, is there any way creative way to display said image in Unity without knowing the exact URL.
For example, if * was recognized as a wildcard character in Unity:
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public string url = "https://www.google.com/images/srpr/logo**.png";
IEnumerator Start() {
WWW www = new WWW(url);
yield return www;
renderer.material.mainTexture = www.texture;
}
}
Thank you very much!
Comment
Answer by DaveA · Jul 20, 2013 at 07:21 PM
That wouldn't work in a browser, so it won't work in Unity either. If you know what might go in place of the wildcard, you could try them. Ex logo01.png logo02.png etc. Try them all, one at a time.
Your answer
Follow this Question
Related Questions
Best way to determine WWW timeout/404/etc.? 2 Answers
Load texture on disabled GameObject 1 Answer
loading different image links into a list 0 Answers
How to assign texture from url 1 Answer