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 68 members inherited from Instance553 Archivable : bool 553 Attributes : string 553 AttributesReplicate : string 553 AttributesSerialize : BinaryString 670 Capabilities : SecurityCapabilities 553 DataCost : int 619 DefinesCapabilities : bool 553 HistoryId : UniqueId 723 IsInSandbox : bool 553 Name : string 553 Parent : Instance 702 PredictionMode : PredictionMode 553 PropertyStatusStudio : PropertyStatus 553 RobloxLocked : bool 670 Sandboxed : bool 616 SourceAssetId : int64 728 Tags : SharedString 680 UniqueId : UniqueId 553 archivable : bool 553 numExpectedDirectChildren : int 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 648 children ( ) : Instances 553 clone ( ) : Instance 573 destroy ( ) : null 553 findFirstChild ( name: string , recursive: bool = false ) : Instance 648 getChildren ( ) : Instances 553 isDescendantOf ( ancestor: Instance ) : bool 573 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 ( ) 553 childAdded ( child: Instance ) 6 members inherited from Object647 ClassName : string 647 className : string 647 GetPropertyChangedSignal ( property: string ) : RBXScriptSignal 647 IsA ( className: string ) : bool 650 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