Table of Contents

Class FreeMovingCameraUtility

Namespace
CodeBase.Tool
Assembly
4Experience.CodeBase.Tool.dll

This component allows you to navigate camera freely around the scene in playmode. It is relying on Unity Input Actions

public class FreeMovingCameraUtility : ExtendedMonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
FreeMovingCameraUtility
Extension Methods

Properties

Acceleration

private float Acceleration { get; set; }

Property Value

float

AltitudeVector

private Vector2 AltitudeVector { get; set; }

Property Value

Vector2

CurrentSpeed

private float CurrentSpeed { get; set; }

Property Value

float

IsAccelerating

private bool IsAccelerating { get; set; }

Property Value

bool

IsChangingAltitude

private bool IsChangingAltitude { get; set; }

Property Value

bool

IsMoving

private bool IsMoving { get; set; }

Property Value

bool

IsRotating

private bool IsRotating { get; set; }

Property Value

bool

IsRotationXInverted

private bool IsRotationXInverted { get; set; }

Property Value

bool

IsRotationYInverted

private bool IsRotationYInverted { get; set; }

Property Value

bool

MoveVector

private Vector2 MoveVector { get; set; }

Property Value

Vector2

RotationSpeedMultiplier

private float RotationSpeedMultiplier { get; set; }

Property Value

float

RotationVector

private Vector2 RotationVector { get; set; }

Property Value

Vector2

RotationX

private float RotationX { get; set; }

Property Value

float

RotationY

private float RotationY { get; set; }

Property Value

float

Speed

private float Speed { get; set; }

Property Value

float

SpeedBoost

private float SpeedBoost { get; set; }

Property Value

float

Methods

Accelerate(CallbackContext)

public void Accelerate(InputAction.CallbackContext context)

Parameters

context InputAction.CallbackContext

ChangeAltitude(CallbackContext)

public void ChangeAltitude(InputAction.CallbackContext context)

Parameters

context InputAction.CallbackContext

Move(CallbackContext)

public void Move(InputAction.CallbackContext context)

Parameters

context InputAction.CallbackContext

PerformAltitudeChange()

private void PerformAltitudeChange()

PerformInput()

private void PerformInput()

PerformMoving()

private void PerformMoving()

PerformRotation()

private void PerformRotation()

ResetRotation()

public void ResetRotation()

Rotate(CallbackContext)

public void Rotate(InputAction.CallbackContext context)

Parameters

context InputAction.CallbackContext

SetCurrentSpeedAndAcceleration()

private void SetCurrentSpeedAndAcceleration()

ToggleRotation(CallbackContext)

public void ToggleRotation(InputAction.CallbackContext context)

Parameters

context InputAction.CallbackContext

Update()

protected virtual void Update()