Struct CameraBody
Contains all the parameters needed to model a physical camera body.
Namespace: Unity.LiveCapture .VirtualCamera
Assembly: Unity.LiveCapture.VirtualCamera.dll
Syntax
[Serializable]
public struct CameraBody
Fields
DefaultParams
The default CameraBody.
Declaration
public static readonly CameraBody DefaultParams
Field Value
Type | Description |
---|---|
Camera |
Properties
DefaultSensorSize
The default sensor size.
Declaration
public static Vector2 DefaultSensorSize { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Iso
Set the sensitivity of the real-world camera sensor.
Declaration
public int Iso { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
Higher values increase the camera's sensitivity to light and result in faster exposure times.
SensorSize
Set the size of the real-world camera sensor in millimeters.
Declaration
public Vector2 SensorSize { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
ShutterSpeed
Sets the exposure time for the camera in seconds.
Declaration
public float ShutterSpeed { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
Lower values result in less exposed pictures.
Methods
Equals(object)
Determines whether the specified object is equal to the current CameraBody.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current CameraBody. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current CameraBody; otherwise, false. |
Overrides
Equals(CameraBody)
Declaration
public bool Equals(CameraBody other)
Parameters
Type | Name | Description |
---|---|---|
Camera |
other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Gets the hash code for the CameraBody.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash value generated for this CameraBody. |
Overrides
Operators
operator ==(CameraBody, CameraBody)
Determines whether the two specified CameraBody are equal.
Declaration
public static bool operator ==(CameraBody a, CameraBody b)
Parameters
Type | Name | Description |
---|---|---|
Camera |
a | The first CameraBody. |
Camera |
b | The second CameraBody. |
Returns
Type | Description |
---|---|
bool | true if the specified CameraBody are equal; otherwise, false. |
operator !=(CameraBody, CameraBody)
Determines whether the two specified CameraBody are different.
Declaration
public static bool operator !=(CameraBody a, CameraBody b)
Parameters
Type | Name | Description |
---|---|---|
Camera |
a | The first CameraBody. |
Camera |
b | The second CameraBody. |
Returns
Type | Description |
---|---|
bool | true if the specified CameraBody are different; otherwise, false. |