Skip to content

Programming reference

Jack Brookes edited this page Apr 28, 2021 · 1 revision

In the sidebar you can see a list of major classes provided in UXF. This will inform you what each method, property, or field of Session, Block or Trial represent.

Style

  • UXF classes are contained inside the UXF namespace. To access them in your code, use UXF.Session or add a using directive at the top of your script (e.g. using UXF;).
  • UXF uses UpperCamelCase for class names, e.g.Trial, Settings, etc. In Unity, script names match the class names of MonoBehaviours (e.g. Session).
  • UpperCamelCase is used for properties with some computation required. For example, block.FirstTrial behind the scenes runs block.trials[0]. You also cannot set these properties.
  • lowerCamelCase is used for fields. E.g trial.settings references an actual Settings instance within the trial.

More reference

๐Ÿง  Core topics

โ“ More help


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

Unit tests

Clone this wiki locally