Reference API Roblox

Engine API

Website

Related

Reference API Roblox

VRSessionState

The lifecycle state of the active VR session, as reported by the VRSessionState property of VRService.

Items 5

HistoryNameValueDescription
598Undefined0

The VR session state is unknown or has not yet been established; the default value of VRSessionState.

598Idle1

The VR headset is connected and ready but is not yet presenting frames to the user.

598Visible2

The VR session is rendering frames visible to the user but does not yet have XR input focus; haptic feedback is available.

598Focused3

The VR session has full XR input focus and is rendering visible frames; haptic feedback is available.

598Stopping4

The VR session is in the process of stopping and will transition to an inactive state.

Description

Represents the current state of the VR session managed by VRService. The engine updates VRSessionState each frame from the active session.

History 16

Settings