Search Unity

Save Back To Resources In A Build

Discussion in 'Scripting' started by Studio_Akiba, Aug 7, 2020.

  1. Studio_Akiba

    Studio_Akiba

    Joined:
    Mar 3, 2014
    Posts:
    1,421
    I know you can save and load to your hearts content to the Resourcess folder inside the editor, but what about in a build?

    There is obviously no Resources.Save, so is it possible to save back to Resources once a project is built or is it essentially read-only from that point on?

    I have taken to using the Resources folder for configuration files without realising that I will need to edit and save back to them once built.
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    Resources folder is read only in a build. You should use Application.persistentDataPath.
     
    Kurt-Dekker likes this.