how do you update an addressable text file then rebuild only this addressable in a Preprocessor?

with /Resources/ folder it’s as easy as IO.writing to the filename, about 4 lines with brackets

        using (BinaryWriter Writer = new BinaryWriter(File.Open("Assets/Data/Resources/BuildDate.txt", FileMode.OpenOrCreate| FileMode.Truncate, FileAccess.Write)))
        {
            Writer.Write(DateTime.Now.ToString("yyyyddMM"));
        }

what’s the script like to do that with addressables?

Same thing with Addressables, just add AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate); after you write the file.

1 Like

thanks