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

PPID Element - 'spontaneous' changes to title and input field #62

Closed cathymacpherson closed 3 years ago

cathymacpherson commented 3 years ago

Firstly, thanks for UXF - this is a wonderful framework that has helped me endlessly in the creation of unity-based experimental procedures.

I have recently come across a slightly strange behaviour in the PPID Element. I can change the title and input field, however, this appears to revert to the original set-up 'spontaneously' (I can't find a pattern, though I'm sure one exists). This in itself isn't too problematic, however when this occurs the input field ceases to show any text entered by the user. That is, although the box allows the participant to type in their PPID (and the experiment will run successfully), this text is invisible. Interestingly, the modified PPID title box and input field will also often spontaneously reappear, and begin working again as normal.

I thought I may be inadvertently duplicating the box and overlaying multiple versions (thereby 'hiding' my changes), but this doesn't appear to be the case. Is there perhaps some code within UXF that is overriding any changes I make?

Apologies if this can be attributed simply to user error. I thought it was worth raising in case this is an unexpected behaviour.

jackbrookes commented 3 years ago

Hi,

Glad you are getting use from UXF. The spontaneous change is on purpose - UXF updates the UI based on settings in UI Controller.

How exactly are you editing the PPID element? I wouldn't recommend editing any of the UI manually - edits should be done in the UI Controller component. You can change it if you want, but it would be overridden if you ever update UXF. This screenshot shows how you could edit it:

image

Another way would be to set Participant ID mode to Automatic and add another input field with your desired title as Display Name:

image

cathymacpherson commented 3 years ago

Hi Jack,

Thanks for your quick response.

I have been editing the PPID in the UI controller component, in the same way as the screenshot you provide.

I have used the datapoints functionality successfully, so may just collect an ID there instead!

Thanks.

jackbrookes commented 3 years ago

Did you find a solution to your issue? 😃