Provides a way to get additional information about a player's view.
Its interface does not cross the network boundary.
Instances of this class cannot be created with Instance.new.
It is a singleton that may be acquired with GetService.
Tags: [NotCreatable, Service, NotReplicated]
History Member 595 GetDeviceCameraCFrame ( player: Player = Player ) : CFrame 609 GetDeviceCameraCFrameForSelfView ( ) : CFrame 608 OnCameraCFrameReplicationRequest ( ) : null 725 UpdateDeviceCFrame ( player: Player = Player, cframe: CFrame = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, timestamp: int64 = 0 ) : null 60 members inherited from Instance726 Archivable : bool 726 Capabilities : SecurityCapabilities 726 DataCost : int 726 IsInSandbox : bool 726 Name : string 726 Parent : Instance 726 PredictionMode : PredictionMode 726 RobloxLocked : bool 726 Sandboxed : bool 726 SourceAssetId : int64 726 UniqueId : UniqueId 726 archivable : bool 576 AddTag ( tag: string ) : null 573 ClearAllChildren ( ) : null 462 Clone ( ) : Instance 573 Destroy ( ) : null 486 FindFirstAncestor ( name: string ) : Instance 486 FindFirstAncestorOfClass ( className: string ) : Instance 486 FindFirstAncestorWhichIsA ( className: string ) : Instance 486 FindFirstChild ( name: string , recursive: bool = false ) : Instance 486 FindFirstChildOfClass ( className: string ) : Instance 486 FindFirstChildWhichIsA ( className: string , recursive: bool = false ) : Instance 486 FindFirstDescendant ( name: string ) : Instance 563 GetActor ( ) : Actor 486 GetAttribute ( attribute: string ) : Variant 462 GetAttributeChangedSignal ( attribute: string ) : RBXScriptSignal 631 GetAttributes ( ) : Dictionary 648 GetChildren ( ) : Instances 462 GetDebugId ( scopeLength: int = 4 ) : string 707 GetDescendants ( ) : Instances 486 GetFullName ( ) : string 706 GetStyled ( name: string , selector: string? ) : Variant 657 GetStyledPropertyChangedSignal ( property: string ) : RBXScriptSignal 576 GetTags ( ) : Array 576 HasTag ( tag: string ) : bool 486 IsAncestorOf ( descendant: Instance ) : bool 486 IsDescendantOf ( ancestor: Instance ) : bool 664 IsPropertyModified ( property: string ) : bool 698 QueryDescendants ( selector: string ) : Instances 573 Remove ( ) : null 576 RemoveTag ( tag: string ) : null 664 ResetPropertyToDefault ( property: string ) : null 573 SetAttribute ( attribute: string , value: Variant ) : null 462 WaitForChild ( childName: string , timeOut: double ) : Instance 726 children ( ) : Instances 726 clone ( ) : Instance 726 destroy ( ) : null 726 findFirstChild ( name: string , recursive: bool = false ) : Instance 726 getChildren ( ) : Instances 726 isDescendantOf ( ancestor: Instance ) : bool 726 remove ( ) : null 462 AncestryChanged ( child: Instance , parent: Instance ) 462 AttributeChanged ( attribute: string ) 462 ChildAdded ( child: Instance ) 462 ChildRemoved ( child: Instance ) 462 DescendantAdded ( descendant: Instance ) 462 DescendantRemoving ( descendant: Instance ) 500 Destroying ( ) 657 StyledPropertiesChanged ( ) 726 childAdded ( child: Instance ) 6 members inherited from Object726 ClassName : string 726 className : string 647 GetPropertyChangedSignal ( property: string ) : RBXScriptSignal 647 IsA ( className: string ) : bool 726 isA ( className: string ) : bool 647 Changed ( property: string )
PlayerViewService provides a way to get additional information about a
player's view.
725
Change Parameters of UpdateDeviceCFrame
from
( player: Player = Player, cframe: CFrame = Identity, timestamp: int64 = 0 )
to
( player: Player = Player, cframe: CFrame = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, timestamp: int64 = 0 ) 609
Add GetDeviceCameraCFrameForSelfView608
Add UpdateDeviceCFrame608
Add OnCameraCFrameReplicationRequest595
Add GetDeviceCameraCFrame595
Add PlayerViewServiceReturns a world space CFrame looking at the player's character,
such that setting the current camera's 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 CFrame.identity .
History 1 GetDeviceCameraCFrameForSelfViewParameters (0 ) No parameters. Returns (1 ) CFrame
History 1 OnCameraCFrameReplicationRequestParameters (0 ) No parameters. Returns (1 ) null
History 1 Parameters (3 ) Default player Player Playercframe CFrame 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 timestamp int64 0 Returns (1 ) null
History 2 725
Change Parameters of UpdateDeviceCFrame
from
( player: Player = Player, cframe: CFrame = Identity, timestamp: int64 = 0 )
to
( player: Player = Player, cframe: CFrame = 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, timestamp: int64 = 0 ) 608
Add UpdateDeviceCFrame