Skip to content

Built-In Components

These are additional components to record common data - just attach them to the Cognitive3D_Manager GameObject. These scripts are intended for easy implementation and try to make few assumptions about your project. You should review these scripts to simplify and optimize in ways specific to your project's needs. These are a good reference for recording other types of data specific to your project.

Provided Components

Arm Length

Collects distances from the HMD to the player's controller. The maximum is assumed to be roughly the player's arm length.

Battery Level

Send the battery level of an Android device after initialization and on quit. This requires building the project to an Android device.

Boundary Event

Sends a Custom Event when SteamVR Chaperone or Oculus Guardian becomes visible and becomes hidden.

Framerate

Records a sensor for the average framerate over time.

Controller Collision Event

Sends Custom Events when either controller collides in the game world. Collision LayerMask can be set on the component.

Controller Input Tracker

Records a Dynamic Object property when common controller inputs occur. This is visible in Scene Explorer.

HMD Collision Event

Sends Custom Events if the HMD collides with something in the game world. Collision LayerMask can be set on the component.

HMD Height

Samples the height of a player's HMD. Average is assumed to be player's eye height.

HMD Present Event

Sends Custom Events when a player removes or wears their HMD.

Headphone State

Check if the participant has headphones connected. This currently only works with Oculus Utilities on Android

Occlusion Event

Sends Custom Events when a controller becomes invalid for some reason. This may be a battery issue, a connection issue or a tracking issue.

Recenter Event

Sends a Custom Event when the HMD recenters. This is usually caused by calling UnityEngine.VR.InputTracking.Recenter(). Requires Oculus Utilities.

Room Size

Include the approximate room size defined by the SteamVR Chaperone or Oculus Guardian.

Teleport Event

Sends a Custom Event when a player's HMD root transform changes positions. This is not triggered when the player walks while using roomscale. If the player moves without an immediate teleport, do not use this component!