Struct ARCoreBeforeSetConfigurationEventArgs
Event arguments for the beforeSetConfiguration event.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARCore
Assembly: Unity.XR.ARCore.dll
Syntax
public struct ARCoreBeforeSetConfigurationEventArgs : IEquatable<ARCoreBeforeSetConfigurationEventArgs>
Constructors
ARCoreBeforeSetConfigurationEventArgs(ArSession, ArConfig)
Constructs an ARCoreBeforeSetConfigurationEventArgs.
Declaration
public ARCoreBeforeSetConfigurationEventArgs(ArSession session, ArConfig config)
Parameters
Type | Name | Description |
---|---|---|
ArSession | session | The ARCore session whose corresponding configuration object will be set. |
ArConfig | config | The ARCore session configuration which will be set. |
Properties
arConfig
Gets the native ARCore configuration that will be set.
Declaration
public ArConfig arConfig { get; }
Property Value
Type | Description |
---|---|
ArConfig | The native ARCore configuration |
Remarks
Refer to Google's ArConfig documentation for more information.
arSession
Gets the native ARCore session whose corresponding configuration object will be set.
Declaration
public ArSession arSession { get; }
Property Value
Type | Description |
---|---|
ArSession | The current session object. |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
Equals(ARCoreBeforeSetConfigurationEventArgs)
Tests for equality.
Declaration
public bool Equals(ARCoreBeforeSetConfigurationEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
ARCoreBeforeSetConfigurationEventArgs | other | The other instance to compare against. |
Returns
Type | Description |
---|---|
bool | true if every field in |
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code generated from this object's fields. |
Overrides
Operators
operator ==(ARCoreBeforeSetConfigurationEventArgs, ARCoreBeforeSetConfigurationEventArgs)
Tests for equality. Equivalent to Equals(ARCoreBeforeSetConfigurationEventArgs).
Declaration
public static bool operator ==(ARCoreBeforeSetConfigurationEventArgs lhs, ARCoreBeforeSetConfigurationEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARCoreBeforeSetConfigurationEventArgs | lhs | The left-hand side of the comparison. |
ARCoreBeforeSetConfigurationEventArgs | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
operator !=(ARCoreBeforeSetConfigurationEventArgs, ARCoreBeforeSetConfigurationEventArgs)
Tests for inequality. Equivalent to !
Equals(ARCoreBeforeSetConfigurationEventArgs).
Declaration
public static bool operator !=(ARCoreBeforeSetConfigurationEventArgs lhs, ARCoreBeforeSetConfigurationEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARCoreBeforeSetConfigurationEventArgs | lhs | The left-hand side of the comparison. |
ARCoreBeforeSetConfigurationEventArgs | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |