immersivecognition / unity-experiment-framework

UXF - Framework for creating human behaviour experiments in Unity
https://immersivecognition.github.io/unity-experiment-framework/
MIT License
221 stars 43 forks source link

Fix bug causing missing prompt in standalone builds #68

Closed JFrit closed 3 years ago

JFrit commented 3 years ago

In standalone builds, there was a problem where trying to begin a session with a session number that already exists wouldn't prompt the experimenter with the 'This session already exists' popup. It would work in the editor since the popupController would get created in the OnValidate method of the UIController, but no such check/creation existed in the Awake method. After testing this change in both the editor and a standalone build, things seem to be working properly.

jackbrookes commented 3 years ago

Thanks!