Replies: 1 comment 1 reply
-
Hi,
void OnTriggerEnter(Collider other)
{
if (!UXF.Session.instance.InTrial) return;
var trial = UXF.Session.instance.CurrentTrial;
TargetPosition correctTargetPosition = (TargetPosition)trial.settings.GetObject("correct_target_position");
TargetPosition triggerPosition = TargetPosition.Unknown;
Debug.Log($"{correctTargetPosition}");
Time.time.ToString("0.#####") Btw, when you store data in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm currently experimenting with UXF - adapting the examples and pieces of codes I found to create my own experiment : a saccadic choice task. 2 targets presented simultaneously - on the right or on the left. Participants have to saccade as fast as they can towards a pre-specified target. As of now, I'm still using the cursor for target selection.
I'm encountering a couple of problems with the OnTriggerEnter() method. Here is the pat of the code where the problems arise :
Do you have any ideas on what I might be doing wrong ?
Any advice would be greatly appreciated - I'm sure I'm doing something stupid somewhere to cause these issues but I can't seem to find a solution.
Best,
Clément
Beta Was this translation helpful? Give feedback.
All reactions