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

    Struct SensorPreset

    A struct that stores a sensor preset.

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

    Properties

    Name

    The name of the preset.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    SensorSize

    The size of the sensor in the preset.

    Declaration
    public Vector2 SensorSize { get; set; }
    Property Value
    Type Description
    Vector2

    Methods

    Equals(Object)

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

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

    The object to compare with the current SensorPreset.

    Returns
    Type Description
    Boolean

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

    Overrides
    ValueType.Equals(Object)

    Equals(SensorPreset)

    Determines whether the specified SensorPreset is equal to the current SensorPreset.

    Declaration
    public bool Equals(SensorPreset other)
    Parameters
    Type Name Description
    SensorPreset other

    The SensorPreset to compare with the current SensorPreset.

    Returns
    Type Description
    Boolean

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

    GetHashCode()

    Gets the hash code for the SensorPreset.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash value generated for this SensorPreset.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(SensorPreset, SensorPreset)

    Determines whether the two specified SensorPreset are equal.

    Declaration
    public static bool operator ==(SensorPreset left, SensorPreset right)
    Parameters
    Type Name Description
    SensorPreset left

    The first SensorPreset.

    SensorPreset right

    The second SensorPreset.

    Returns
    Type Description
    Boolean

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

    Inequality(SensorPreset, SensorPreset)

    Determines whether the two specified SensorPreset are different.

    Declaration
    public static bool operator !=(SensorPreset left, SensorPreset right)
    Parameters
    Type Name Description
    SensorPreset left

    The first SensorPreset.

    SensorPreset right

    The second SensorPreset.

    Returns
    Type Description
    Boolean

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

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