Open Asterune
VRService

VRService

Reports VR session state, tracked poses, controllers, and locomotion settings.

Service
game:GetService("VRService")
Inherits
Instance
Replication
Never

Behavior

VRService reports VR session state, tracked poses, controllers, and locomotion settings.

Summary

Members59
Properties33
Methods15
Events11

Properties

AutomaticScaling

VRService.AutomaticScaling: EnumItem

Whether VR world scaling follows the automatic scaling policy.

AvatarGestures

VRService.AvatarGestures: boolean

Whether tracked VR gestures are applied to the avatar.

ComfortVignette

VRService.ComfortVignette: number

The strength of the comfort vignette used during movement.

ControllerModelsVisible

VRService.ControllerModelsVisible: boolean

Whether the engine renders the controller models.

DominantHand

VRService.DominantHand: EnumItem

The hand selected for primary VR interaction.

EyeHeight

VRService.EyeHeight: number

The configured eye height used by VR positioning.

FadeOutViewOnCollision

VRService.FadeOutViewOnCollision: boolean

Whether the view fades when the VR camera intersects geometry.

GuiPanelCFrame

VRService.GuiPanelCFrame: CFrame

The world-space transform of the VR interface panel.

GuiPanelSize

VRService.GuiPanelSize: Vector2

The dimensions of the VR interface panel.

GuiPanelVisible

VRService.GuiPanelVisible: boolean

Whether the VR interface panel is displayed.

HandColor

VRService.HandColor: Color3

The tint applied to the rendered VR hands.

HeadAngularVelocity

VRService.HeadAngularVelocity: Vector3

The tracked head's world-space angular velocity.

HeadCFrame

VRService.HeadCFrame: CFrame

The tracked head transform in world space.

HeadVelocity

VRService.HeadVelocity: Vector3

The tracked head's world-space linear velocity.

LaserPointer

VRService.LaserPointer: EnumItem

The controller-pointer mode used for interface interaction.

LeftHand

VRService.LeftHand: VRController

The live VRController interface for the left hand.

LocomotionMode

VRService.LocomotionMode: EnumItem

Whether movement uses continuous locomotion or teleportation.

MovementDirection

VRService.MovementDirection: EnumItem

Whether locomotion direction follows the head or hand pose.

OriginCFrame

VRService.OriginCFrame: CFrame

The transform mapping the VR tracking origin into world space.

PlayAreaSize

VRService.PlayAreaSize: Vector2

The reported physical play-area dimensions.

RefreshRate

VRService.RefreshRate: number

The current headset refresh rate, in hertz.

RightHand

VRService.RightHand: VRController

The live VRController interface for the right hand.

Seated

VRService.Seated: boolean

Fires when the Humanoid's seated state changes.

SessionState

VRService.SessionState: EnumItem

The current VR session lifecycle state.

SmoothTurnSpeed

VRService.SmoothTurnSpeed: number

The angular speed used for smooth turning.

SnapTurnAngle

VRService.SnapTurnAngle: number

The rotation applied by each snap turn, in degrees.

ThirdPersonFollowCamEnabled

VRService.ThirdPersonFollowCamEnabled: boolean

Whether the third-person VR follow camera is enabled.

TurnMode

VRService.TurnMode: EnumItem

Whether turning uses snap rotation, smooth rotation, or no input rotation.

UserPresent

VRService.UserPresent: boolean

Whether the runtime reports that the user is wearing the headset.

VRDeviceAvailable

VRService.VRDeviceAvailable: boolean

Whether a VR device is available to the runtime.

VRDeviceName

VRService.VRDeviceName: string

The name reported by the active VR runtime.

VREnabled

VRService.VREnabled: boolean

Whether a VR session is enabled for the current client.

WorldScale

VRService.WorldScale: number

The world-space scale applied to tracked VR positions.

Methods

GetController

VRService:GetController(hand: EnumItem): VRController

Returns the VRController for the selected hand.

GetExecutionGroup

VRService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetRefreshRates

VRService:GetRefreshRates(): { number }

Returns the refresh rates supported by the VR runtime, in hertz.

GetTouchpadMode

VRService:GetTouchpadMode(pad: EnumItem): EnumItem

Returns the input interpretation mode for the selected touchpad.

GetUserCFrame

VRService:GetUserCFrame(type: EnumItem): CFrame

Returns the requested pose relative to the VR tracking origin.

GetUserCFrameEnabled

VRService:GetUserCFrameEnabled(type: EnumItem): boolean

Returns whether the requested pose is currently tracked.

GetWorldCFrame

VRService:GetWorldCFrame(type: EnumItem): CFrame

Returns the requested tracked pose transformed into world space.

RecenterGuiPanel

VRService:RecenterGuiPanel(): ()

Repositions the VR interface panel relative to the current view.

RecenterUserHeadCFrame

VRService:RecenterUserHeadCFrame(): ()

Requests recentering of the headset's tracking origin.

RequestNavigation

VRService:RequestNavigation(cframe: CFrame, inputUserCFrame: EnumItem): ()

Requests navigation using the supplied VR navigation options.

RequestRefreshRate

VRService:RequestRefreshRate(hertz: number): ()

Requests a supported headset refresh rate, in hertz.

SetTouchpadMode

VRService:SetTouchpadMode(pad: EnumItem, mode: EnumItem): ()

Sets the input interpretation mode for the selected touchpad.

StopVibration

VRService:StopVibration(hand: EnumItem?): ()

Stops vibration on the selected controller or controllers.

Turn

VRService:Turn(degrees: number): ()

Applies the supplied yaw rotation, in degrees.

Vibrate

VRService:Vibrate(hand: EnumItem, amplitude: number, duration: number?, frequency: number?): ()

Requests controller vibration with the supplied amplitude, duration, and frequency.

Events

ButtonDown

VRService.ButtonDown: RBXScriptSignal

Fires when a controller button is pressed.

ButtonUp

VRService.ButtonUp: RBXScriptSignal

Fires when a controller button is released.

ControllerConnected

VRService.ControllerConnected: RBXScriptSignal

Fires when a VR controller connects.

ControllerDisconnected

VRService.ControllerDisconnected: RBXScriptSignal

Fires when a VR controller disconnects.

NavigationRequested

VRService.NavigationRequested: RBXScriptSignal

Fires when VR navigation is requested.

Recentered

VRService.Recentered: RBXScriptSignal

Fires after the VR view is recentered.

SessionStateChanged

VRService.SessionStateChanged: RBXScriptSignal

Fires when the VR session state changes.

TouchpadModeChanged

VRService.TouchpadModeChanged: RBXScriptSignal

Fires when a touchpad interpretation mode changes.

UserCFrameChanged

VRService.UserCFrameChanged: RBXScriptSignal

Fires when a tracked user-space pose changes.

UserCFrameEnabled

VRService.UserCFrameEnabled: RBXScriptSignal

Fires when the availability of a tracked pose changes.

UserPresenceChanged

VRService.UserPresenceChanged: RBXScriptSignal

Fires when headset user presence changes.

Inherited members

Inherited47

Instance