Class FreeMovingCameraUtility
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
-
ObjectComponentBehaviourMonoBehaviourFreeMovingCameraUtility
- Extension Methods
Properties
Acceleration
private float Acceleration { get; set; }
Property Value
AltitudeVector
private Vector2 AltitudeVector { get; set; }
Property Value
- Vector2
CurrentSpeed
private float CurrentSpeed { get; set; }
Property Value
IsAccelerating
private bool IsAccelerating { get; set; }
Property Value
IsChangingAltitude
private bool IsChangingAltitude { get; set; }
Property Value
IsMoving
private bool IsMoving { get; set; }
Property Value
IsRotating
private bool IsRotating { get; set; }
Property Value
IsRotationXInverted
private bool IsRotationXInverted { get; set; }
Property Value
IsRotationYInverted
private bool IsRotationYInverted { get; set; }
Property Value
MoveVector
private Vector2 MoveVector { get; set; }
Property Value
- Vector2
RotationSpeedMultiplier
private float RotationSpeedMultiplier { get; set; }
Property Value
RotationVector
private Vector2 RotationVector { get; set; }
Property Value
- Vector2
RotationX
private float RotationX { get; set; }
Property Value
RotationY
private float RotationY { get; set; }
Property Value
Speed
private float Speed { get; set; }
Property Value
SpeedBoost
private float SpeedBoost { get; set; }
Property Value
Methods
Accelerate(CallbackContext)
public void Accelerate(InputAction.CallbackContext context)
Parameters
contextInputAction.CallbackContext
ChangeAltitude(CallbackContext)
public void ChangeAltitude(InputAction.CallbackContext context)
Parameters
contextInputAction.CallbackContext
Move(CallbackContext)
public void Move(InputAction.CallbackContext context)
Parameters
contextInputAction.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
contextInputAction.CallbackContext
SetCurrentSpeedAndAcceleration()
private void SetCurrentSpeedAndAcceleration()
ToggleRotation(CallbackContext)
public void ToggleRotation(InputAction.CallbackContext context)
Parameters
contextInputAction.CallbackContext
Update()
protected virtual void Update()