VRServiceクラス
ひとことで言うと
VRServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Service responsible for handling interactions between Roblox and Virtual Reality (VR).
クラスの関係
プロパティ(8)
| 名前と書き方 | 説明 |
|---|---|
AutomaticScalingVRService.AutomaticScaling: VRScaling | Automatically adjusts scaling in VR to align the player with their avatar. |
AvatarGesturesVRService.AvatarGestures: boolean | When true, a VR player will be able to animate their hands and head using their controllers and headset. |
ControllerModelsVRService.ControllerModels: VRControllerModelMode | Controls whether and how the player's VR hand controllers are rendered in the experience. |
FadeOutViewOnCollisionVRService.FadeOutViewOnCollision: boolean | When true, a VR player's view will fade to black when their head collides with an object. |
GuiInputUserCFrameVRService.GuiInputUserCFrame: UserCFrame | Describes what UserCFrame is responsible for input in VR. |
LaserPointerVRService.LaserPointer: VRLaserPointerMode | Controls whether and how the VR laser pointer used to interact with the user interface is displayed. |
ThirdPersonFollowCamEnabledVRService.ThirdPersonFollowCamEnabled: boolean | Indicates whether the third-person follow camera is enabled for the VR user. |
VREnabledVRService.VREnabled: boolean | Describes whether the user is using a virtual reality device. |
メソッド(6)
| 名前と書き方 | 説明 |
|---|---|
GetTouchpadModeVRService:GetTouchpadMode(pad: VRTouchpad): VRTouchpadMode | Returns the VRTouchpadMode indicating the mode of a specified VRTouchpad. |
GetUserCFrameVRService: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. |
GetUserCFrameEnabledVRService:GetUserCFrameEnabled(type: UserCFrame): boolean | Returns true if the specified UserCFrame is available to be listened to. |
RecenterUserHeadCFrameVRService:RecenterUserHeadCFrame(): () | Re-centers the CFrame to the current location of the VR headset being worn by the user. |
RequestNavigationVRService:RequestNavigation(cframe: CFrame, inputUserCFrame: UserCFrame): () | Requests navigation to the specified CFrame using the specified UserCFrame as the origin for the visualizer parabola. |
SetTouchpadModeVRService:SetTouchpadMode(pad: VRTouchpad, mode: VRTouchpadMode): () | Sets the mode of the specified VRTouchpad to the specified VRTouchpadMode. |
イベント(4)
| 名前と書き方 | 説明 |
|---|---|
NavigationRequestedVRService.NavigationRequested(cframe: CFrame, inputUserCFrame: UserCFrame) | Fired when navigation is requested from VRService. |
TouchpadModeChangedVRService.TouchpadModeChanged(pad: VRTouchpad, mode: VRTouchpadMode) | Fires if the VRTouchpadMode of a VRTouchpad is changed. |
UserCFrameChangedVRService.UserCFrameChanged(type: UserCFrame, value: CFrame) | Fires when a UserCFrame is changed. |
UserCFrameEnabledVRService.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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(VRService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。