docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SensorPreset

    A struct that stores a sensor preset.

    Namespace: Unity.LiveCapture.VirtualCamera
    Assembly: Unity.LiveCapture.VirtualCamera.dll
    Syntax
    [Serializable]
    public struct 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
    bool

    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
    bool

    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
    int

    The hash value generated for this SensorPreset.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(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
    bool

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

    operator !=(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
    bool

    true if the specified SensorPreset 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)