Memory error pls help
ı have a load image code ı use this code in every 3 second 1 time
texture = ((DownloadHandlerTexture)www.downloadHandler).texture; rec = new Rect(0, 0, texture.width, texture.height); Manga_Resimleri[sıra].sprite = Sprite.Create(texture, rec, new Vector2(0.5f, 0.5f), 100); Manga_Resimleri_rect[sıra].sizeDelta = new Vector2(1050, Mathf.RoundToInt(1050f * texture.height / texture.width)); Manga_Resim_Objeleri[sıra].SetActive(true); www.Dispose(); www = null;
// and ı take very lake memory in Scene memory in texture2d like this
but my pics very tiny example=540kb ı see this in texture 2d 21mb why please help ı work on it 2 day,ı have a image load code! code is texture = ((DownloadHandlerTexture)www.downloadHandler).texture; rec = new Rect(0, 0, texture.width, texture.height); Manga_Resimleri[sıra].sprite = Sprite.Create(texture, rec, new Vector2(0.5f, 0.5f), 100); Manga_Resimleri_rect[sıra].sizeDelta = new Vector2(1050, Mathf.RoundToInt(1050f * texture.height / texture.width)); Manga_Resim_Objeleri[sıra].SetActive(true); www.Dispose(); www = null; // but this use very texture 2d memory and if android ram is low 512 its crash please help about that alt text [1]: https://hizliresim.com/00g8XW
Your answer
Follow this Question
Related Questions
What is the correct way to store circular references in Unity? 1 Answer
Need help with memory management 0 Answers
WebGl project memory usage 1 Answer
Run out of memory in build 1 Answer