My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | List of all members
GameCamera Class Reference
Inheritance diagram for GameCamera:
BaseCamera

Public Member Functions

void UpdateClipPlanes (Camera c)
 
Vector3 GetSpectatorCamPos ()
 
void Shake (Vector3 pos, Vector2 direction, float magnitude)
 
void Flash (Color color, float dropRate=0.1f)
 
void SetTargetFOV (float fov)
 
void DropShakeEffects ()
 
bool IsCursorOnScreenEdge (float activateScreenMarginX, float activateScreenMarginY)
 
bool FarAway ()
 
void MoveToPosition (Vector3 pos)
 
void CancelPosition ()
 
void SetSpectator (bool on)
 
- Public Member Functions inherited from BaseCamera
virtual void Set ()
 
void UpdateForegroundCamera ()
 
Vector3 GetWorldPlanePosition ()
 
void SetListenerOnCamera ()
 

Static Public Member Functions

static bool IsEnabled ()
 

Public Attributes

float ZDistance = 8000.0f
 
float clipPlaneSpan = 400.0f
 
float followLerp = 0.33f
 
Vector2 aimScreenScale = Vector2.one
 
Vector2 aimDistanceScale = Vector2.one
 
Vector3 positionOffset
 
Vector3 rotationOffset
 
bool followIfOnUI = true
 
float defaultPlayFieldOfView = 8.0f
 
float minPlayFieldOfView = 4.0f
 
float maxPlayFieldOfView = 8.0f
 
float FOVAddBasedOnDistanceFactor = 1.0f
 
float FOVChangeSpeedFactor = 0.1f
 
float furtherOutRadius = 15.0f
 
float furtherOutCoef = 0.18f
 
float rotationSpeed = 0.001f
 
float rotationSpeedFactor = 0.1f
 
float heightRotationFactor = 0.5f
 
float heightRotationHeight = 17.0f
 
Vector3 shakeVector
 
float shakeDropFactor = 0.75f
 
float shakeCamDistanceScale = 4.0f
 
float shakeScale = 2.0f
 
float shakeAngleScale = 10.0f
 
float zShakeScale = 0.4f
 
float globalShakeScale = 0.05f
 
Image screenFlash
 
GameObject cursor
 
float spectatorMoveSpeed = 0.17f
 
float spectatorLerp = 0.02f
 
float spectatorFieldOfView = 17
 
float spectatorRotateFactor = 0.13f
 
float spectatorTilt = 1.0f
 
float startFieldOfView = 20.0f
 
float userSpectatorFieldOfView
 
float specatorListenerDistance = 30.0f
 
bool spectatorWhenDead
 
Vector3 destination
 
Vector2 aimCenterVector
 
Vector2 aimVector
 
bool enableSpectatorControls = true
 
Text spectatorText
 
- Public Attributes inherited from BaseCamera
Camera cam
 
AudioListener listener
 
float listenerDistance = 20.0f
 
Camera foregroundCam
 
float foregroundOffset = 1.0f
 
bool keepInBoundsLeft
 
bool keepInBoundsRight
 
bool keepInBoundsTop
 
bool keepInBoundsBottom
 
bool outOfFocus
 
float lowerBoundAdjust = 10.0f
 
float upperBoundAdjust = 0.0f
 
float leftBoundAdjust = 1.0f
 
float rightBoundAdjust = 1.0f
 
bool restoreTransform = false
 

Static Public Attributes

static GameCamera Get
 
static float worldScreenWidth = 63.0f
 

Protected Member Functions

override void Awake ()
 
- Protected Member Functions inherited from BaseCamera
virtual void Awake ()
 
void LateUpdate ()
 
Vector3 KeepInsideBounds (Vector3 pos)
 
void SetListener (Transform parent, Vector3 listenerPos, float listenerDistance)
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void OnApplicationFocus (bool hasFocus)
 

Properties

Controls Target [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from BaseCamera
bool overrideKeepInBounds
 
Vector3 defaultPos
 
Vector3 thisPos
 
Quaternion defaultRot
 
Quaternion thisRot
 
float defaultZoom
 
float thisZoom
 
CameraController controller
 

Member Function Documentation

◆ Awake()

override void GameCamera.Awake ( )
inlineprotectedvirtual

Reimplemented from BaseCamera.


The documentation for this class was generated from the following file: