ProjectAcoustics icon indicating copy to clipboard operation
ProjectAcoustics copied to clipboard

Support for multiple editor instances (Multiplayer Playmode)

Open RyanGarber opened this issue 1 year ago • 0 comments

Unity now has an official multiplayer mode, which launches multiple editor instances. This feature is trivially easy to support -- the only issue when using it is that Acoustics attempts to delete the "old" cached ace file, but it's in use. Specifically, this line:

void InitAcoustics()
{
    ...
    var dataPath = System.IO.Path.Combine(Application.temporaryCachePath, AceFile.name);
    ...
}

By simply adding a suffix to the file, there's no more conflict. You could even simply expose an option for the user -- SetCachePath() or SetCacheId().

RyanGarber avatar Sep 04 '23 11:09 RyanGarber