My Project
Loading...
Searching...
No Matches
CameraController.Camera2D Class Reference
Inheritance diagram for CameraController.Camera2D:
CameraController.BaseCamera

Protected Member Functions

override void UpdateCamera ()
 Update the camera and the target follower position.
override void UpdateFollowerPosition ()
override void UpdateCameraPosition ()
Protected Member Functions inherited from CameraController.BaseCamera
virtual void Awake ()
virtual void Update ()
virtual void FixedUpdate ()
virtual void LateUpdate ()
void UpdateFollowerPosition ()
 Update the position of the target follower.
void UpdateCameraPosition ()
 Update the position of the camera.
float GetDeltaTime ()
 Get the deltatime based on the cuurent followmode.

Private Member Functions

void Start ()
void OnEnable ()
void OnDisable ()
void SetLookAheadDir (InputAction.CallbackContext context)
void LookAhead ()
float GetLookAhead (float currentLookAhead, float maxLookAhead, float damping)

Static Private Member Functions

static void CreateCamera ()

Private Attributes

bool offsetFollowMovement
float offsetDamping
float offsetDir = 1f
InputActionReference lookAheadInput
Vector2 maxLookAhead
float lookAheadDamping
Vector2 lookAheadDir
Vector2 lookAhead
Vector3 currentOffset

Additional Inherited Members

Protected Attributes inherited from CameraController.BaseCamera
Transform target
Transform targetFollower
Transform cameraTransform
Vector3 offset
FollowMode followMode
float followDamping
Vector3 followSmoothDampVelocity

Member Function Documentation

◆ UpdateCamera()

override void CameraController.Camera2D.UpdateCamera ( )
protectedvirtual

Update the camera and the target follower position.

Reimplemented from CameraController.BaseCamera.


The documentation for this class was generated from the following file:
  • CameraController/Script/Camera/Camera2D.cs