Skip to main content

Namespace mobisim.Assessment.Survey

Namespaces​

Classes​

Abstract MonoBehaviour that renders a UI Toolkit survey, validates required responses, and enforces attention-check rules before advancing the participant to the next study step.

A scriptable object class containing a set of available choices or responses for a user to select from.

Custom property drawer for the OptionStruct class in the Unity Inspector using UIElements. Dynamically displays fields based on the selected OptionDataType.

ScriptableObject container for defining the configuration options for a dropdown InputOptionsData?text=input in the survey. This asset allows you to specify the list of choices that will appear in the dropdown menu for a SurveyItemData?text=survey+question.

Represents a single survey content item, which could be a question, header, or subheader. This ScriptableObject allows for defining the structure and behavior of each content item in the SurveyPageData?text=survey+page.

Custom editor for SurveyItemData

Manages overlay survey data for the current level and handles sending it to the server.

Presents one or more questionnaire pages as an overlay on top of the running simulation, collecting responses without pausing or ending the game mode session.

Represents a single survey page, containing a collection of survey content items. Each page can hold multiple content items such as questions, headers, or subheaders, which will be displayed in a vertical order (from top to bottom) on the page.

Collects survey responses from a co-located SurveyPageGenerator, bookmarks the session with start and end Unix timestamps, and transmits the complete payload to the backend when the scenario ends.

Instantiates a full-screen survey page from a SurveyPageData asset, collects the responses, and advances the game mode when the participant submits.

JSON payload shape for a single survey transmission: session identity from SessionMetaDataLog, survey timing, and the collected responses.

Flat data bag that captures one survey question's participant response along with the metadata needed to validate it (required flag, attention-check expected values).

Project-level settings for survey visual presets.

ScriptableObject that holds configuration options for a slider input in a survey. This asset defines the range, step, initial value, and optional tick marks for a slider input.

ScriptableObject container for holding a set of survey UI visual presets.
This asset can be created via the Unity editor and assigned to other systems to provide consistent UI styling across survey interfaces.

A collection of UI Toolkit VisualTreeAsset presets used to visually style various parts of the survey interface.

Custom property drawer for displaying SurveyVisualPresets as a custom property field in the scriptable object or project settings..

Structs​

Defines how attention check logic is applied.

Struct representing a single option in a survey input. Includes the type of input (e.g., radio button, slider), label, and associated configuration data for dropdowns and sliders.

Enums​

Logical operators for evaluating attention check values.

Specifies the type of survey option. When set to this, the generator will generate a survey option matching the specified type.

Layout options for displaying the input controls of a survey question.

Defines the type of content for this survey content, which can be a header, subheader, or question.