Skip to content
Jack Brookes edited this page Jun 30, 2021 ยท 14 revisions

Bugs

If you find a bug or something you think is not supposed to happen please check the Issues page for info, if it isn't listed, create a new issue!

NoSuchTrialException - There is no next trial

This error usually occurs in a few circumstances:

  1. Perhaps you are trying to run the first trial before generating your blocks and trials. Make sure you have written a method which generates your blocks and trials, and then add it to the On Session Start event. It is important to note the items listed in these events run in order, so it is important to make sure that you are not trying to run a trial before they have been generated. You can reorder the items by dragging. See this issue for more info.
  2. Perhaps you have some logic which tries to start the next trial immediately after ending one. This is problematic because when you are at the end of the trial list, there is no further trial to start. To avoid this, you can use session.BeginNextTrialSafe(), which only starts the next trial if one exists, otherwise does nothing.

API / Scripting compatibility

If you are having compiler errors, make sure you are using the following settings in Project Settings > Player.

Unity 2018.3 or newer:

  • Scripting Runtime Version .NET 4.x equivalent.
  • API Compatibility Level .NET 4.x.

Older than Unity 2018.3:

  • Scripting Runtime Version: Stable (.NET 3.5 equivalent).
  • API Compatibility Level .NET 2.0 (NOT subset).

Verifying the settings of your trials & blocks

You can use the UXF Session Debugger to verify that your trial, blocks and settings are being generated correctly. To access it, use click the UXF menu at the top, and select UXF Session Debugger. It only works after you have started the session.

UXF Session Debugger

WebGL unityFramework is not defined

You can try this suggestion: https://github.community/t/github-pages-referenceerror-unityframework/150646/2

(Enable Decompression Fallback in Project Settings โ†’ Player)

๐Ÿง  Core topics

โ“ More help


๐Ÿ‘ฉโ€๐Ÿ’ป Programming reference

Unit tests

Clone this wiki locally