docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Lens

    Contains all the parameters needed to configure a physical camera lens.

    Namespace: Unity.LiveCapture.VirtualCamera
    Assembly: Unity.LiveCapture.VirtualCamera.dll
    Syntax
    [Serializable]
    public struct Lens

    Fields

    DefaultParams

    The default lens values.

    Declaration
    public static readonly Lens DefaultParams
    Field Value
    Type Description
    Lens

    Properties

    Aperture

    The ratio of the f-stop or f-number aperture. The smaller the value is, the shallower the depth of field is and more light reaches the sensor.

    Declaration
    public float Aperture { get; set; }
    Property Value
    Type Description
    float

    FocalLength

    The focal length in millimeters.

    Declaration
    public float FocalLength { get; set; }
    Property Value
    Type Description
    float

    FocusDistance

    The focus distance in meters.

    Declaration
    public float FocusDistance { get; set; }
    Property Value
    Type Description
    float

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current Lens.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current Lens.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current Lens; otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(Lens)

    Declaration
    public bool Equals(Lens other)
    Parameters
    Type Name Description
    Lens other
    Returns
    Type Description
    bool

    GetHashCode()

    Gets the hash code for the Lens.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash value generated for this Lens.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(Lens, Lens)

    Determines whether the two specified Lens are equal.

    Declaration
    public static bool operator ==(Lens a, Lens b)
    Parameters
    Type Name Description
    Lens a

    The first Lens.

    Lens b

    The second Lens.

    Returns
    Type Description
    bool

    true if the specified Lens are equal; otherwise, false.

    operator !=(Lens, Lens)

    Determines whether the two specified Lens are different.

    Declaration
    public static bool operator !=(Lens a, Lens b)
    Parameters
    Type Name Description
    Lens a

    The first Lens.

    Lens b

    The second Lens.

    Returns
    Type Description
    bool

    true if the specified Lenses are different; otherwise, false.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)