Propiedades
Nombre | Tipo | Descripción | Nombre del script |
---|---|---|---|
Camera Type | CameraType | Provide many preset camera types and customized camera types. | CameraType |
Field of View | Float | Field of view is the camera’s viewing angle | FOV |
Offset | Vector3 | Generally refers to the offset of the camera’s position from the player’s home position, with different meanings for different camera types. | Offset |
Observation point offset | Vector3 | FOV is the offset of the camera’s focus point from the player’s home position, which varies by camera type. | FocusPoint |
Vertical Angle | Float | Angle of rotation of the camera in the vertical direction | Pitch |
Yaw | Float | The angle of rotation of the camera in the horizontal direction. | Yaw |
Distance from target | Float | (Deprecated, please do not use) | Distance_Deprecated |
Target followed | entity | The target that the camera is following | FollowTarget |
Target observed | entity | The target that the camera is looking at | FocusTarget |
Owner | Player List | Solo lectura The player who is using the camera |
Owner |
Camera transition type | Camera Transition Type | Solo lectura Camera Switch Animation Type |
CameraTransitionType |
Camera transition time | Float | Transition time to this camera in milliseconds, only if the switch type is smooth. | CameraTransitionTime |
Camera Block Mode | Camera Block Mode | Motion mode of the camera when there is an occlusion between the camera and the target. | CameraBlockMode |
Camera Projection Mode | Camera Projection Mode | How the camera renders the screen | CameraProjectionMode |
Coordinate System Type | Follow object offset reference coordinate system | FollowCoordinateType | |
Coordinate System Type | Observing object offset reference coordinate system | FocusCoordinateType | |
CullingMask | Int | The camera’s rendering layer mask, which allows filtering the camera’s rendered objects by visibility level | CullingMask |
Viewing Angle Restriction | Camera Viewing Angle Restriction Type | Viewing Angle Restriction | ViewingAngleRestriction |
API
Nombre | Descripción |
---|---|
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. |