Studying human behavior with virtual reality: The Unity Experiment Framework
Related Experiment Video
Updated: Jan 26, 2026

Virtual Reality Experiments with Physiological Measures
Published on: August 29, 2018
Jack Brookes1, Matthew Warburton2, Mshari Alghadier2
1School of Psychology, University of Leeds, Leeds, West Yorkshire, UK. jbrookes187@gmail.com.
Abstract:
Virtual reality (VR) systems offer a powerful tool for human behavior research. The ability to create three-dimensional visual scenes and to measure responses to the visual stimuli enables the behavioral researcher to test hypotheses in a manner and scale that were previously unfeasible. For example, a researcher wanting to understand interceptive timing behavior might wish to violate Newtonian mechanics so that objects can move in novel 3-D trajectories. The same researcher might wish to collect such data with hundreds of participants outside the laboratory, and the use of a VR headset makes this a realistic proposition. The difficulty facing the researcher is that sophisticated 3-D graphics engines (e.g., Unity) have been created for game designers rather than behavioral scientists. To overcome this barrier, we have created a set of tools and programming syntaxes that allow logical encoding of the common experimental features required by the behavioral scientist. The Unity Experiment Framework (UXF) allows researchers to readily implement several forms of data collection and provides them with the ability to easily modify independent variables. UXF does not offer any stimulus presentation features, so the full power of the Unity game engine can be exploited. We use a case study experiment, measuring postural sway in response to an oscillating virtual room, to show that UXF can replicate and advance upon behavioral research paradigms. We show that UXF can simplify and speed up the development of VR experiments created in commercial gaming software and facilitate the efficient acquisition of large quantities of behavioral research data.
Related Concept Videos
Imaging Studies III: Gastrointestinal Motility Studies and Virtual Colonoscopy
Radionuclide Testing
Radionuclide testing is a sophisticated medical technique for assessing gastrointestinal motility. It focuses on gastric emptying and colonic transit time. Radioactive markers track the movement of food through the digestive system, providing insights into gastrointestinal disorders.
In gastric emptying studies, a meal's liquid and...
Virtual Work
In static equilibrium, a body can experience an imaginary or virtual movement, such as displacement or rotation. The virtual work done by a force is equal to the dot product of force and virtual displacement in the direction of the force. When it comes to virtually rotating a...
The Stanford Prison Experiment
What is Behavior?
What is an Experiment?
Principle of Virtual Work: Problem Solving
To apply the principle of virtual work,...

