PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

NavigationRequested

The NavigationRequested event fires when navigation is requested from the VRService for a specified Enum/UserCFrame VR device.

This is fired with a DataType/CFrame coordinate and specified UserCFrame indicating the device requesting the navigation.

This /VRService event can be used alongside /UserInputService service events and functions.

Since the event fires locally, it can only be used in a /LocalScript.

Parameters

Name Type Default Description

The requested CFrame coordinates.

Indicates the VR device for which navigation is requested.


Code Samples


VRService.NavigationRequested

This example prints the name of the UserCFrame VR device making the request, and the CFrame coordinates passed.

local VRService = game:GetService("VRService")

VRService.TouchpadModeChanged:Connect(function(cframe, inputUserCFrame)
	print(inputUserCFrame.Name + " made request with CFrame: " + cframe)
end)