Camera

Camera

Camera
Component
Combine:
entity

Multiple types of preset and custom camera are provided

Properties

Name Type Description Script Name
Camera Type CameraType Multiple types of preset and custom camera are provided CameraType
Field of View Float The field of view is the observable range of the camera. FOV
Offset Vector3 Typically refers to the offset of camera position relative to the player’s original position. (Meaning varies by camera type) Offset
Observation point offset Vector3 Typically refers to the offset of camera focus point relative to the player’s original position. (Meaning varies by camera type) FocusPoint
Vertical Angle Float Camera’s vertical rotation angle Pitch
Yaw Float Camera’s horizontal rotation angle Yaw
Distance from target Float Distance from target Distance_Deprecated
Target followed entity Target followed FollowTarget
Target observed entity Target observed FocusTarget
Owner Player List Read Only
Camera user
Owner
Camera transition type Camera Transition Type Read Only
Camera transition type
CameraTransitionType
Camera transition time Float Camera transition time CameraTransitionTime
Camera Block Mode Camera Block Mode Camera’s motion when there’s an object between the camera and target CameraBlockMode
Camera Projection Mode Camera Projection Mode Camera’s image formation when rendering CameraProjectionMode
Coordinate System Type \ FollowCoordinateType
Coordinate System Type \ FocusCoordinateType
CullingMask Int This is the camera’s cullingMask render layer. You can filter the render entity using the level of the visible layer. CullingMask
Viewing Angle Restriction Camera Viewing Angle Restriction Type \ ViewingAngleRestriction

API

Name Description
Switch Camera Switching the target player’s camera to the target camera
Set Culling Mask Set the target camera layer mask
Get Culling Mask Get the target camera layer mask
Set Culling Mask Layer Set whether the specified layer is visible to the target camera.