immersivecognition / unity-experiment-framework

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

Session.End() quit the whole application #146

Closed rmib200 closed 1 year ago

rmib200 commented 1 year ago

Hi, I want to end the experiment but not necessarily end the runtime after ending a session. Right now the app exits, or if I am in the Unity Editor to runtime ends. For example, I wanna show a menu and possibly go back to the experiment after calling Session.instance.End() . Is that possible?

rmib200 commented 1 year ago

@jackbrookes hi, do you have any thoughts on this? :)

jackbrookes commented 1 year ago

There is no default behaviour in UXF that ends the application after a session. Perhaps you have a method hooked up to your OnSessionEnd event that quits the application when the session ends?