Struct LegacyLensSettings
Used to read in CM2 LensSettings
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Obsolete("LegacyLensSettings is deprecated. Use LensSettings instead.")]
[Serializable]
public struct LegacyLensSettings
Fields
Anamorphism
Obsolete.
Declaration
public float Anamorphism
Field Value
Type | Description |
---|---|
float |
Aperture
Obsolete.
Declaration
public float Aperture
Field Value
Type | Description |
---|---|
float |
BarrelClipping
Obsolete.
Declaration
public float BarrelClipping
Field Value
Type | Description |
---|---|
float |
BladeCount
Obsolete.
Declaration
public int BladeCount
Field Value
Type | Description |
---|---|
int |
Curvature
Obsolete.
Declaration
public Vector2 Curvature
Field Value
Type | Description |
---|---|
Vector2 |
Dutch
Obsolete.
Declaration
public float Dutch
Field Value
Type | Description |
---|---|
float |
FarClipPlane
Obsolete.
Declaration
public float FarClipPlane
Field Value
Type | Description |
---|---|
float |
FieldOfView
Obsolete.
Declaration
public float FieldOfView
Field Value
Type | Description |
---|---|
float |
FocusDistance
Obsolete.
Declaration
public float FocusDistance
Field Value
Type | Description |
---|---|
float |
GateFit
Obsolete.
Declaration
public Camera.GateFitMode GateFit
Field Value
Type | Description |
---|---|
Camera.GateFitMode |
Iso
Obsolete.
Declaration
public int Iso
Field Value
Type | Description |
---|---|
int |
LensShift
Obsolete.
Declaration
public Vector2 LensShift
Field Value
Type | Description |
---|---|
Vector2 |
ModeOverride
Obsolete.
Declaration
public LensSettings.OverrideModes ModeOverride
Field Value
Type | Description |
---|---|
LensSettings.OverrideModes |
NearClipPlane
Obsolete.
Declaration
public float NearClipPlane
Field Value
Type | Description |
---|---|
float |
OrthographicSize
Obsolete.
Declaration
public float OrthographicSize
Field Value
Type | Description |
---|---|
float |
ShutterSpeed
Obsolete.
Declaration
public float ShutterSpeed
Field Value
Type | Description |
---|---|
float |
m_SensorSize
Obsolete.
Declaration
[HideInInspector]
public Vector2 m_SensorSize
Field Value
Type | Description |
---|---|
Vector2 |
Properties
Default
Obsolete. Default Legacy Lens Settings
Declaration
public static LegacyLensSettings Default { get; }
Property Value
Type | Description |
---|---|
LegacyLensSettings |
Methods
SetFromLensSettings(LensSettings)
Obsolete
Declaration
public void SetFromLensSettings(LensSettings src)
Parameters
Type | Name | Description |
---|---|---|
LensSettings | src | LensSettings to copy from |
ToLensSettings()
Convert to LensSettings
Declaration
public LensSettings ToLensSettings()
Returns
Type | Description |
---|---|
LensSettings | Lens Settings representation of the LegacyLensSettings object |
Validate()
Make sure legacy lens settings are sane. Call this from OnValidate().
Declaration
public void Validate()