Open cletess opened 9 months ago
Hi, I can't see any code here that actually starts the next trial. Maybe that would reveal more into your issue?
Perhaps you have some code that automatically starts the next trial after the last one ends? What you would need is some way to check if you should be pausing or not. If not, you not start the next trial and instead trigger the next trial when you've completed your pause.
Hi people,
I've been playing around a bit with UXF and Unity - starting from ground zero and I have managed to design a nice saccadic choice task with the Varjo Aero HMD, where we compare head movements and eye movements to targets.
I created a custom method to initiate a pause between blocks of trials and I call this method OnTrialEnd, checking if it's the last trial in the block. If it is, it pauses the experiment, displays a Canvas/UI interface with a couple of options like "eye-tracking calibration" and "proceed with the task".
All this works fine except for the part where the pause between blocks systematically skip the first trial of the second block (it's more as if the first trial was starting automatically in parallel with the UI interface) and I cannot figure out why. It must be something quite obvious but my coffee-injected brain cannot spot it.
Any help - advice on this would be greatly appreciated !
Here is the hierarchy of my task :
The different events :
and here is the method attached to the Canvas to deal with pauses between blocks :