Search Unity

What is UnityShaderCache file under Android external storage?

Discussion in 'Android' started by sekari, Dec 24, 2015.

  1. sekari

    sekari

    Joined:
    Jan 13, 2015
    Posts:
    27
    Hi,

    Today I have realized that my unity application stores some binary data under /Android/data/xxx.company.name/cahce/UnityShaderCache

    I have 2 questions related to this issue:
    1) What is UnityShaderCache file?
    2) What will happen to these files if an Android 6 user deny WRITE_EXTERNAL_STORAGE permission? Does Unity handle this issue or should the user allow the permission to run the application?
     
    nadiapega212 likes this.
  2. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    binary compiled shaders.

    WRITE_EXTERNAL_STORAGE: Starting in API level 19, this permission is not required to read/write files in your application-specific directories returned by getExternalFilesDir(String) and getExternalCacheDir()
     
    nadiapega212 likes this.
  3. nadiapega212

    nadiapega212

    Joined:
    May 29, 2021
    Posts:
    1