This commit is contained in:
Joe 2026-02-02 12:08:47 -06:00
parent a9b4f8e83b
commit e6efc04756
8494 changed files with 495610 additions and 0 deletions

View file

@ -0,0 +1,59 @@
# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: PlayerViewService
type: class
memory_category: Instances
summary: |
Provides a way to get additional information about a player's view.
description: |
`Class.PlayerViewService` provides a way to get additional information about a
player's view.
code_samples: []
inherits:
- Instance
descendants: []
tags:
- NotCreatable
- Service
- NotReplicated
deprecation_message: ''
properties: []
methods:
- name: PlayerViewService:GetDeviceCameraCFrame
summary: |
Returns a world space `Datatype.CFrame` looking at the player's character.
description: |
Returns a world space `Datatype.CFrame` looking at the player's character,
such that setting the current camera's `Datatype.CFrame` will view that
character from the perspective of their device.
This method leverages the device's camera and it only functions on mobile
devices. If no information is available, for example the user is not on a
mobile device or they don't have their camera turned on, this method
returns a `Datatype.CFrame.identity`.
See [Roblox Connect](../../../resources/roblox-connect.md) for a sample
implementation of this method.
code_samples:
- PlayerViewService-GetDeviceCameraCFrame
parameters:
- name: player
type: Player
default: nil
summary: |
The player for which to get the device camera `Datatype.CFrame`.
returns:
- type: CFrame
summary: |
The world space `Datatype.CFrame` looking at the player's character,
or a `Datatype.CFrame.identity` (see description).
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities:
- SensitiveInput
events: []
callbacks: []