Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
CameraManager Class Reference
Inheritance diagram for CameraManager:

Public Types

enum  CameraMode {
  CameraMode.Flight, CameraMode.Map, CameraMode.External, CameraMode.IVA,
  CameraMode.Internal
}
 

Public Member Functions

void NextCamera ()
 Switches to next camera in current mode More...
 
void NextCameraIVA ()
 Sets next IVA camera active More...
 
void NextCameraMode ()
 Switches to next camera mode More...
 
void PreviousCameraMode ()
 Switches to previous camera mode More...
 
void SetCameraFlight ()
 Sets flight camera active More...
 
void SetCameraInternal (InternalModel internalModel, Transform target)
 
bool SetCameraIVA ()
 Sets first IVA camera active More...
 
bool SetCameraIVA (Kerbal kerbal, bool resetCamera)
 Sets specified kerbal camera active More...
 
void SetCameraMap ()
 Sets map camera active More...
 
void SetCameraMode (CameraMode mode)
 Sets the camera mode More...
 

Static Public Member Functions

static Camera GetCurrentCamera ()
 
static void ICameras_DeactivateAll ()
 Deactivates all cameras implementing ICamera interface More...
 
static void ICameras_ResetAll ()
 Deactivates all cameras implementing ICamera interface More...
 

Public Attributes

CameraMode currentCameraMode
 
float existingFlightFoV = -1f
 
float existingIVAFoV = -1f
 
CameraMode previousCameraMode
 

Properties

static CameraManager Instance [get, set]
 
Kerbal IVACameraActiveKerbal [get]
 
int IVACameraActiveKerbalIndex [get]
 

Member Enumeration Documentation

Enumerator
Flight 
Map 
External 
IVA 
Internal 

Member Function Documentation

static Camera CameraManager.GetCurrentCamera ( )
inlinestatic
static void CameraManager.ICameras_DeactivateAll ( )
inlinestatic

Deactivates all cameras implementing ICamera interface

static void CameraManager.ICameras_ResetAll ( )
inlinestatic

Deactivates all cameras implementing ICamera interface

void CameraManager.NextCamera ( )
inline

Switches to next camera in current mode

void CameraManager.NextCameraIVA ( )
inline

Sets next IVA camera active

void CameraManager.NextCameraMode ( )
inline

Switches to next camera mode

void CameraManager.PreviousCameraMode ( )
inline

Switches to previous camera mode

void CameraManager.SetCameraFlight ( )
inline

Sets flight camera active

void CameraManager.SetCameraInternal ( InternalModel  internalModel,
Transform  target 
)
inline
bool CameraManager.SetCameraIVA ( )
inline

Sets first IVA camera active

Returns
False if no IVA camera is available
bool CameraManager.SetCameraIVA ( Kerbal  kerbal,
bool  resetCamera 
)
inline

Sets specified kerbal camera active

Parameters
kerbal
Returns
void CameraManager.SetCameraMap ( )
inline

Sets map camera active

void CameraManager.SetCameraMode ( CameraMode  mode)
inline

Sets the camera mode

Parameters
mode

Member Data Documentation

CameraMode CameraManager.currentCameraMode
float CameraManager.existingFlightFoV = -1f
float CameraManager.existingIVAFoV = -1f
CameraMode CameraManager.previousCameraMode

Property Documentation

CameraManager CameraManager.Instance
staticgetset
Kerbal CameraManager.IVACameraActiveKerbal
get
int CameraManager.IVACameraActiveKerbalIndex
get

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