docs.unity3d.com
    目次を表示する/隠す

    Struct Lens

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

    Namespace: Unity.LiveCapture.VirtualCamera
    Syntax
    [Serializable]
    public struct Lens : IEquatable<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
    Single

    FocalLength

    The focal length in millimeters.

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

    FocusDistance

    The focus distance in meters.

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

    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
    Boolean

    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
    Boolean

    GetHashCode()

    Gets the hash code for the Lens.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash value generated for this Lens.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(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
    Boolean

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

    Inequality(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
    Boolean

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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)