ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.2k stars 152 forks source link

EnterPlayMode Options fix #321

Closed punkyman closed 3 months ago

punkyman commented 3 months ago

Hello,

we found an issue in the unity integration of steam audio that is due to how unity handles the enterplaymode options.

Current flow evaluates the condition that checks the SceneReload to true in all cases, thus considering that the SceneReload is always disabled, even if the project has the default settings ("Enter playmode Options unticked, thus always reload domain and scene).

This is due to the fact that unity write DisableDomainReload and DisableSceneReload flags by default, and requires to first check if the project has the setting "Enter Playmode Options" ticked before considering the flag values.

You can find the fix attached to this pull request.

Thanks for releasing the project as open source !