-
Hi Everyone, how can I ensure that a new Trial starts after switching scenes via I have a "TaskScene" where UXF is used and a "QuestionnaireScene" from which I then want to switch back to the "TaskScene" and continue the task. UXF is "Set as Main Instance" and "Don't Destroy on Load New Scene" which already avoided starting the UI after switching scenes. However, the script/function that was dragged into "On Trial Begin (Trial)" does not start automatically when switching scenes. I imagined some call to the task in Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, I found the solution in the multiscene-experiment example, see: Basically, UXF does the job of switching scenes and starting/ending trials using some extra functions that are defined in the example, i.e. |
Beta Was this translation helpful? Give feedback.
Hi, I found the solution in the multiscene-experiment example, see:
unity-experiment-framework/Assets/UXF/Examples/3_MultiScene_FootballAndRT/Scripts/Example_MultiSceneExperimentGenerator.cs
Line 9 in fbeeb77
Basically, UXF does the job of switching scenes and starting/ending trials using some extra functions that are defined in the example, i.e.
SetupTrial
(UXF/Events/On Trial Begin) ,SceneSpecificSetup
(calls what needs to be done in the task) andCleanupTrial
(UXF/Events/On Trial End).