public Texture2D LoadImage() { CheckWWWUsage(); CheckDownloadUsage(); return(ES2.LoadImage(data)); }
void ApplyTextureFromSaved() { //fogTexture.SetPixels(0, 0, fogTexture.width, fogTexture.height, savedMap); if (ES2.Exists("savedFogTexture.png")) { fogTexture = ES2.LoadImage("savedFogTexture.png"); fogTexture.Apply(); renderer.material.mainTexture = fogTexture; fogTexture.Apply(); } else { print("No texture found"); } }