Skip to content

Camera ​

Inherits PVInstance → Instance.

Made with Instance.new("Camera").

Properties ​

NameTypeNotes
CameraSubjectPVInstance?Not saved in places.
CameraTypeEnumCameraTypeNot saved in places.
FieldOfViewnumber
FocusOffsetVector3Not saved in places.
MaxZoomDistancenumberNot saved in places.
MinZoomDistancenumberNot saved in places.
TransformTransform
ViewportSizeVector2Read-only.
ZoomnumberRead-only. Not saved in places.

Methods ​

  • ScreenPointToRay(x: number, y: number, depth: number?): Ray
  • ViewportPointToRay(x: number, y: number, depth: number?): Ray
  • WorldToScreenPoint(worldPoint: Vector3): (Vector3, boolean)
  • WorldToViewportPoint(worldPoint: Vector3): (Vector3, boolean)

Inherited ​

From PVInstance: GetPivot, PivotTo.

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0