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

    Struct CameraBody

    Contains all the parameters needed to model a physical camera body.

    Namespace: Unity.LiveCapture.VirtualCamera
    Syntax
    [Serializable]
    public struct CameraBody : IEquatable<CameraBody>

    Fields

    DefaultParams

    The default CameraBody.

    Declaration
    public static readonly CameraBody DefaultParams
    Field Value
    Type Description
    CameraBody

    Properties

    DefaultSensorSize

    The default sensor size.

    Declaration
    public static readonly 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
    Int32
    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
    Single
    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
    Boolean

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

    Overrides
    ValueType.Equals(Object)

    Equals(CameraBody)

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

    GetHashCode()

    Gets the hash code for the CameraBody.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash value generated for this CameraBody.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(CameraBody, CameraBody)

    Determines whether the two specified CameraBody are equal.

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

    The first CameraBody.

    CameraBody b

    The second CameraBody.

    Returns
    Type Description
    Boolean

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

    Inequality(CameraBody, CameraBody)

    Determines whether the two specified CameraBody are different.

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

    The first CameraBody.

    CameraBody b

    The second CameraBody.

    Returns
    Type Description
    Boolean

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

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