Handles the camera movement and positioning to follow a target. Supports smooth transitions and interaction-specific camera behavior.
More...
|
| void | SetTarget (Transform newTarget, bool interacting) |
| | Sets the target for the camera to follow and specifies whether interaction mode is active.
|
| |
|
| Transform | target |
| | Transform of the target the camera should follow.
|
| |
| float | smoothSpeed = 5f |
| | Speed of the camera's smooth movement.
|
| |
| Vector3 | normalOffset = new Vector3(0, -10, 0) |
| | Normal position offset of the camera.
|
| |
| Vector3 | interactionOffset = new Vector3(0, 1.7f, 1.5f) |
| | Interaction-specific position offset of the camera.
|
| |
| Vector3 | interactionRotation = new Vector3(0, 0, 0) |
| | Interaction-specific rotation of the camera.
|
| |
Handles the camera movement and positioning to follow a target. Supports smooth transitions and interaction-specific camera behavior.
◆ SetTarget()
| void CameraFollow.SetTarget |
( |
Transform |
newTarget, |
|
|
bool |
interacting |
|
) |
| |
Sets the target for the camera to follow and specifies whether interaction mode is active.
- Parameters
-
| newTarget | The new target for the camera. |
| interacting | True if interaction mode is active, false otherwise. |
◆ Instance
◆ interactionOffset
| Vector3 CameraFollow.interactionOffset = new Vector3(0, 1.7f, 1.5f) |
Interaction-specific position offset of the camera.
◆ interactionRotation
| Vector3 CameraFollow.interactionRotation = new Vector3(0, 0, 0) |
Interaction-specific rotation of the camera.
◆ normalOffset
| Vector3 CameraFollow.normalOffset = new Vector3(0, -10, 0) |
Normal position offset of the camera.
◆ smoothSpeed
| float CameraFollow.smoothSpeed = 5f |
Speed of the camera's smooth movement.
◆ target
| Transform CameraFollow.target |
Transform of the target the camera should follow.
The documentation for this class was generated from the following file: