Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Caching.CleanCache has undocumented behavior regarding ProceduralMaterials

Discussion in 'Documentation' started by cory_munky, Jun 5, 2015.

  1. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    My tests are showing that it in addition to
    "Delete all AssetBundle content that has been cached by the current application."​
    it also clears the ProceduralMaterial disk cache.

    After iterating on device through lots of seemingly correct ways to use the vague ProceduralMaterial interface only to learn that nothing I did with it would ever make it work correctly, I'm more than a little frustrated. It would help if the ProceduralMaterial docs were more explicit about in-memory cache vs persistent, on-disk cache instead of just referring to "cache" everywhere. There is also no mention of whether a disk-cached material needs to be rebuilt or not (apparently, it does).
     
  2. duck

    duck

    Unity Technologies

    Joined:
    Oct 21, 2008
    Posts:
    358
    Hi cory_munky, thanks for your feedback. I'll find out about getting the specifics of this function documented, both in the CleanCache page and the procedural materials page, and I'l try and make sure a note is posted here when the improvements have been published.

    Thanks again.
     
  3. duck

    duck

    Unity Technologies

    Joined:
    Oct 21, 2008
    Posts:
    358