docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ARKitFocus

    Read-only struct that stores lens position value of camera focus.

    Implements
    IEquatable<ARKitFocus>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARKit
    Assembly: solution.dll
    Syntax
    public struct ARKitFocus : IEquatable<ARKitFocus>

    Constructors

    Name Description
    ARKitFocus(float)

    Constructs an instance with given lens position value.

    Properties

    Name Description
    lensPosition

    The lens position value. The value doesn't correspond to an exact physical distance of the lens. The range of possible positions is 0.0 to 1.0, with 0.0 being the shortest distance at which the lens can focus and 1.0 the furthest. Note that 1.0 doesn't represent focus at infinity.

    Methods

    Name Description
    Equals(object)

    Tests for equality.

    Equals(ARKitFocus)

    Tests for equality.

    GetHashCode()

    Generates a hash code suitable for use with a HashSet or Dictionary

    ToString()

    Generates a string representation of this ARKitFocus suitable for debugging purposes.

    Operators

    Name Description
    operator ==(ARKitFocus, ARKitFocus)

    Tests for equality. Same as Equals(ARKitFocus).

    operator !=(ARKitFocus, ARKitFocus)

    Tests for inequality. Same as the negation of Equals(ARKitFocus).

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023