Search Unity

Using the library folder

Discussion in 'Scripting' started by Guedez, Jan 15, 2020.

  1. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    Is it possible to use the Library folder to store a generated texture array?
    I don't mind the player having to generate such texture array on the built version in the loading screen, but I really really really don't want to wait for it to generate when I enter play mode. These types of caches are exactly what the library folder is for, right? Like when you convert a .blend to fbx and store the fbx in the library folder and internally everything uses the fbx even through they point to the .blend

    How do I make my script do the same?

    Please do not suggest me stop using a texture array, this is not the point of the question
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    I'd consider writing an editor script to generate your needed texture arrays, save them to your assets folder, so you only have to do it once instead of every time you enter play mode. Unless I'm misunderstanding your issue.
     
  3. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    That's already what's happening, the issue is that said asset is 300 mega big and goes into the build and collab after generation