Struct ARKitFocusRange
Represents the minimum and maximum supported lens position. A lens position value doesn't correspond to an exact physical distance, nor does it represent a consistent focus distance from device to device.
Implements
Inherited Members
Namespace: UnityEngine .XR.ARKit
Assembly: Unity.XR.ARKit.dll
Syntax
public struct ARKitFocusRange : IEquatable<ARKitFocusRange>
Properties
maximumLensPosition
Maximum supported lens position. This value represent the furthest distance at which the lens can focus.
Declaration
public float maximumLensPosition { get; }
Property Value
Type | Description |
---|---|
float |
minimumLensPosition
Minimum supported lens position. This value represent the shortest distance at which the lens can focus.
Declaration
public float minimumLensPosition { get; }
Property Value
Type | Description |
---|---|
float |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Returns
Type | Description |
---|---|
bool | true if |
Overrides
Equals(ARKitFocusRange)
Tests for equality.
Declaration
public bool Equals(ARKitFocusRange other)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
other | The ARKit |
Returns
Remarks
Two ARKit
GetHashCode()
Generates a hash code suitable for use with a HashSet
or Dictionary
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this ARKit |
Overrides
ToString()
Generates a string representation of this ARKit
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARKit |
Overrides
Operators
operator ==(ARKitFocusRange, ARKitFocusRange)
Tests for equality. Same as Equals(ARKit
Declaration
public static bool operator ==(ARKitFocusRange lhs, ARKitFocusRange rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
lhs | The ARKit |
ARKit |
rhs | The ARKit |
Returns
Type | Description |
---|---|
bool | true if |
operator !=(ARKitFocusRange, ARKitFocusRange)
Tests for inequality. Same as the negation of Equals(ARKit
Declaration
public static bool operator !=(ARKitFocusRange lhs, ARKitFocusRange rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
lhs | The ARKit |
ARKit |
rhs | The ARKit |
Returns
Type | Description |
---|---|
bool | false if |