VRServiceクラス

クラスサービス(game:GetService("VRService")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

VRServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):Service responsible for handling interactions between Roblox and Virtual Reality (VR).

クラスの関係

受け継いでいるクラス:Object → Instance → VRService

プロパティ(8)

名前と書き方説明
AutomaticScaling
VRService.AutomaticScaling: VRScaling
Automatically adjusts scaling in VR to align the player with their avatar.
AvatarGestures
VRService.AvatarGestures: boolean
When true, a VR player will be able to animate their hands and head using their controllers and headset.
ControllerModels
VRService.ControllerModels: VRControllerModelMode
Controls whether and how the player's VR hand controllers are rendered in the experience.
FadeOutViewOnCollision
VRService.FadeOutViewOnCollision: boolean
When true, a VR player's view will fade to black when their head collides with an object.
GuiInputUserCFrame
VRService.GuiInputUserCFrame: UserCFrame
Describes what UserCFrame is responsible for input in VR.
LaserPointer
VRService.LaserPointer: VRLaserPointerMode
Controls whether and how the VR laser pointer used to interact with the user interface is displayed.
ThirdPersonFollowCamEnabled
VRService.ThirdPersonFollowCamEnabled: boolean
Indicates whether the third-person follow camera is enabled for the VR user.
VREnabled
VRService.VREnabled: boolean
Describes whether the user is using a virtual reality device.

メソッド(6)

名前と書き方説明
GetTouchpadMode
VRService:GetTouchpadMode(pad: VRTouchpad): VRTouchpadMode
Returns the VRTouchpadMode indicating the mode of a specified VRTouchpad.
GetUserCFrame
VRService:GetUserCFrame(type: UserCFrame): CFrame
Returns a CFrame describing the position & orientation of a specified virtual reality device as an offset from a point in real world space.
GetUserCFrameEnabled
VRService:GetUserCFrameEnabled(type: UserCFrame): boolean
Returns true if the specified UserCFrame is available to be listened to.
RecenterUserHeadCFrame
VRService:RecenterUserHeadCFrame(): ()
Re-centers the CFrame to the current location of the VR headset being worn by the user.
RequestNavigation
VRService:RequestNavigation(cframe: CFrame, inputUserCFrame: UserCFrame): ()
Requests navigation to the specified CFrame using the specified UserCFrame as the origin for the visualizer parabola.
SetTouchpadMode
VRService:SetTouchpadMode(pad: VRTouchpad, mode: VRTouchpadMode): ()
Sets the mode of the specified VRTouchpad to the specified VRTouchpadMode.

イベント(4)

名前と書き方説明
TouchpadModeChanged
VRService.TouchpadModeChanged(pad: VRTouchpad, mode: VRTouchpadMode)
Fires if the VRTouchpadMode of a VRTouchpad is changed.
UserCFrameChanged
VRService.UserCFrameChanged(type: UserCFrame, value: CFrame)
Fires when a UserCFrame is changed.
UserCFrameEnabled
VRService.UserCFrameEnabled(type: UserCFrame, enabled: boolean)
Fires when a UserCFrame is enabled or disabled.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(VRService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む