we do have the unity assets server (although it was disabled when I posted this), and the files in “FMOD\TerraTechFMOD\Build/Desktop” are in P4, but the files in “C:/Dev/terratech/main/Assets/StreamingAssets” are not in Perforce (the ignore file prevents them being checked in).
Speculation / Observation:
It seems that Unity makes these files read only when they’re created via EventManger.CopyToStreamingAssets and then on subsequent runs this falls over since the files are not writable.
We use the Perforce Mode in Unity’s Version Control Editor Settings.
In the image linked
A - where files are copied to.
B - where built Banks live.
The built banks (B) are under Source Control (same Depot as Unity Project) and we only want our remote audio designer or occasionally someone on site to have to build the banks - thus keeping the development environment the same for all staff.
However when these files are copied into the StreamingAssets folder (A) they maintain their ReadOnly flag, which then causes the errors I’m getting.
If I check out, or clear the ReadOnly flag -including the folder, B then it all seems to work.
However, this then means that when the sound is changed and re-built we’ll have issues for the rest of the team to deal with.
As a workaround I’ve checked in these banks as Writeable but I can’t see how this is feasible going forward, especially as it will require our sound designer or someone else to check in these files with the writable flag set.