Class CameraSpecification
A ScriptableObject containing information about Camera Intrinsics.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Perception.Randomization
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
[MovedFrom("UnityEngine.Perception.Internal")]
[CreateAssetMenu(fileName = "CameraSpec", menuName = "Perception/Randomization/Camera Specification", order = 0)]
public class CameraSpecification : ScriptableObject
Fields
focalLength
The distance between the lens and the sensor. Larger values lead to smaller field of views.
Declaration
public float focalLength
Field Value
| Type | Description |
|---|---|
| float |
gateFitMode
Determines how the rendered area (resolution gate) fits into the sensor area (film gate).
Declaration
public Camera.GateFitMode gateFitMode
Field Value
| Type | Description |
|---|---|
| Camera.GateFitMode |
lensShift
Offset from the camera sensor. Measured as multiples of the sensorSize.
Declaration
public Vector2 lensShift
Field Value
| Type | Description |
|---|---|
| Vector2 |
sensorSize
The size of the camera sensor in millimeters.
Declaration
public Vector2 sensorSize
Field Value
| Type | Description |
|---|---|
| Vector2 |
specificationDescription
An optional description of the specification.
Declaration
public string specificationDescription
Field Value
| Type | Description |
|---|---|
| string |