Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Android 10 issues dynamically loading sprites?

Discussion in 'Android' started by majorapplesauce, Apr 10, 2020.

  1. majorapplesauce

    majorapplesauce

    Joined:
    Jun 15, 2013
    Posts:
    13
    Guys:

    I'm not sure if this has been answered or even addressed (i tried searching the forums with no results). So here it goes!

    On IOS and all versions of Android less than 10 i do not have this problem. But on Android os 10 i'm getting feedback that any of my sprites that i change the sprite out dynamically just doesn't load. They don't get an error message the sprite itself just is black image or no image at all. Now, if i don't dynamically load the sprites they show up just find.

    Below is one example of how i'm dynamically loading the sprites

    GameObject.Find("PanelOne").transform.Find("InfoPanel").transform.Find("TitleCert").GetComponent<SpriteRenderer>().sprite = Resources.Load<Sprite>("Images/Items/NewCertIMG");

    So, the above works fine on everything else except for the pure evil that is Android 10.

    Any initial thoughts? Need more details?

    Thanks again,
     
  2. majorapplesauce

    majorapplesauce

    Joined:
    Jun 15, 2013
    Posts:
    13
    So, i know what's going on now. And my other users just haven't been clear on the issue. It goes beyond android 10. It has everything to do with my OBB file that i'm having to add due to the size of the APK. Anyone know how to make sure that my app has the appropriate permissions for my own OBB file?

    Or, if there are any other options to better compress the APK file. I cannot reduce the size of the game any further as it has hi rez images that are part of the game.

    Thoughts?