docs.unity3d.com
    Show / Hide Table of Contents

    Struct SensorPreset

    A struct that stores a sensor preset.

    Namespace: Unity.LiveCapture.VirtualCamera
    Syntax
    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.

    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.

    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023