Struct ARKitExposure
Read-only struct that stores exposure duration and ISO values.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: Unity.XR.ARKit.dll
Syntax
public struct ARKitExposure : IEquatable<ARKitExposure>
Constructors
ARKitExposure(double, float)
Constructs an instance with given exposure values.
Declaration
public ARKitExposure(double duration, float iso)
Parameters
Type | Name | Description |
---|---|---|
double | duration | Exposure duration in seconds. |
float | iso | The ISO value. |
Properties
duration
Exposure duration in seconds with sub-millisecond precision.
Declaration
public double duration { get; }
Property Value
Type | Description |
---|---|
double |
iso
The exposure ISO value.
Declaration
public float iso { get; }
Property Value
Type | Description |
---|---|
float |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare against. |
Returns
Type | Description |
---|---|
bool | Returns true if |
Overrides
Equals(ARKitExposure)
Tests for equality.
Declaration
public bool Equals(ARKitExposure other)
Parameters
Type | Name | Description |
---|---|---|
ARKitExposure | other | The ARKitExposure to compare against. |
Returns
Type | Description |
---|---|
bool | true if the duration and ISO values are equal. Otherwise, false. |
Remarks
Two ARKitExposures are considered equal if their duration and ISO values are equal.
GetHashCode()
Generates a hash code suitable for use with a HashSet
or Dictionary
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Returns a hash code for this ARKitExposure. |
Overrides
ToString()
Generates a string representation of this ARKitExposure suitable for debugging purposes.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARKitExposure. |
Overrides
Operators
operator ==(ARKitExposure, ARKitExposure)
Tests for equality. Same as Equals(ARKitExposure).
Declaration
public static bool operator ==(ARKitExposure lhs, ARKitExposure rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKitExposure | lhs | The ARKitExposure to compare with |
ARKitExposure | rhs | The ARKitExposure to compare with |
Returns
Type | Description |
---|---|
bool | true if |
operator !=(ARKitExposure, ARKitExposure)
Tests for inequality. Same as the negation of Equals(ARKitExposure).
Declaration
public static bool operator !=(ARKitExposure lhs, ARKitExposure rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKitExposure | lhs | The ARKitExposure to compare with |
ARKitExposure | rhs | The ARKitExposure to compare with |
Returns
Type | Description |
---|---|
bool | false if |