# VRService(ロブロックス クラス) > Service responsible for handling interactions between Roblox and Virtual Reality (VR). - URL:https://roblox.minecraft-okinawa.com/reference/classes/VRService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/VRService - 受け継いでいるクラス:Instance ## プロパティ - `VRService.AutomaticScaling: VRScaling`:Automatically adjusts scaling in VR to align the player with their avatar. - `VRService.AvatarGestures: boolean`:When true, a VR player will be able to animate their hands and head using their controllers and headset. - `VRService.ControllerModels: VRControllerModelMode`:Controls whether and how the player's VR hand controllers are rendered in the experience. - `VRService.FadeOutViewOnCollision: boolean`:When true, a VR player's view will fade to black when their head collides with an object. - `VRService.GuiInputUserCFrame: UserCFrame`:Describes what UserCFrame is responsible for input in VR. - `VRService.LaserPointer: VRLaserPointerMode`:Controls whether and how the VR laser pointer used to interact with the user interface is displayed. - `VRService.ThirdPersonFollowCamEnabled: boolean`:Indicates whether the third-person follow camera is enabled for the VR user. - `VRService.VREnabled: boolean`:Describes whether the user is using a virtual reality device. ## メソッド - `VRService:GetTouchpadMode(pad: VRTouchpad): VRTouchpadMode`:Returns the VRTouchpadMode indicating the mode of a specified VRTouchpad. - `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. - `VRService:GetUserCFrameEnabled(type: UserCFrame): boolean`:Returns true if the specified UserCFrame is available to be listened to. - `VRService:RecenterUserHeadCFrame(): ()`:Re-centers the CFrame to the current location of the VR headset being worn by the user. - `VRService:RequestNavigation(cframe: CFrame, inputUserCFrame: UserCFrame): ()`:Requests navigation to the specified CFrame using the specified UserCFrame as the origin for the visualizer parabola. - `VRService:SetTouchpadMode(pad: VRTouchpad, mode: VRTouchpadMode): ()`:Sets the mode of the specified VRTouchpad to the specified VRTouchpadMode. ## イベント - `VRService.NavigationRequested(cframe: CFrame, inputUserCFrame: UserCFrame)`:Fired when navigation is requested from VRService. - `VRService.TouchpadModeChanged(pad: VRTouchpad, mode: VRTouchpadMode)`:Fires if the VRTouchpadMode of a VRTouchpad is changed. - `VRService.UserCFrameChanged(type: UserCFrame, value: CFrame)`:Fires when a UserCFrame is changed. - `VRService.UserCFrameEnabled(type: UserCFrame, enabled: boolean)`:Fires when a UserCFrame is enabled or disabled. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)