Logo
 All Classes Files Functions Variables Enumerations
Public Attributes | List of all members
DynamicCamera.ModeSettings Class Reference

Public Attributes

CameraMode cameraMode = CameraMode.Forward
Transform trackingTarget = null
Vector3 manualAngle = Vector3.forward

Detailed Description

This wraps the camera mode settings

This class is a wrapper to make the inspector logically organized.

See Also
modeSettings

Member Data Documentation

CameraMode DynamicCamera.ModeSettings.cameraMode = CameraMode.Forward

This variable stores the current mode ofthe camera

Though this is a public variable, it is recommended that you use the setters and getters to access it, as it is cumbersome to access directly.

See Also
DynamicCamera.CameraMode
manualAngle
trackingTarget
Vector3 DynamicCamera.ModeSettings.manualAngle = Vector3.forward

This stores the manual angle used by the camera in MANUAL mode

This is a unit vector which defines a position relative to the mainTarget. Thus, (1,0,0) would put the camera on the right, (0,1,o) would put the camera above the target, and (0,0,1) would put the camera in front of the target. This can be a powerful tool, and is how the MouseAim.cs script is implemented.

Though this is a public variable, it is recommended that you use the setters and getters to access it, as it is cumbersome to access directly.

See Also
DynamicCamera.CameraMode
cameraMode
MouseAim
Transform DynamicCamera.ModeSettings.trackingTarget = null

This stores a reference to the secondary target used in Tracking Mode

If this is null, the camera will continue to operate normally, but if in tracking mode this value has the following limitations:

  • Not null
  • Not this DynamicCamera
  • Not the current mainTarget of the Dynamic Camera

An error in any of these respects will force the camera into forward mode and provide a warning.

Though this is a public variable, it is recommended that you use the setters and getters to access it, as it is cumbersome to access directly.

See Also
DynamicCamera.CameraMode
CameraMode
TrackingToggle

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