Struct ARCoreBeforeSetConfigurationEventArgs
Event arguments for the before
Implements
Inherited Members
Namespace: UnityEngine .XR.ARCore
Assembly: Unity.XR.ARCore.dll
Syntax
public struct ARCoreBeforeSetConfigurationEventArgs : IEquatable<ARCoreBeforeSetConfigurationEventArgs>
Constructors
ARCoreBeforeSetConfigurationEventArgs(IntPtr, IntPtr)
Constructs an ARCore
Declaration
[Obsolete("Use ARCoreBeforeSetConfigurationEventArgs(ArSession, ArConfig) instead. (2020-10-02)")]
public ARCoreBeforeSetConfigurationEventArgs(IntPtr session, IntPtr config)
Parameters
Type | Name | Description |
---|---|---|
Int |
session | The native ARCore session whose corresponding configuration object will be set. |
Int |
config | The native ARCore configuration which will be set. |
ARCoreBeforeSetConfigurationEventArgs(ArSession, ArConfig)
Constructs an ARCore
Declaration
public ARCoreBeforeSetConfigurationEventArgs(ArSession session, ArConfig config)
Parameters
Type | Name | Description |
---|---|---|
Ar |
session | The ARCore session whose corresponding configuration object will be set. |
Ar |
config | The ARCore session configuration which will be set. |
Properties
arConfig
(Read Only) The native ARCore configuration which will be set.
Declaration
public ArConfig arConfig { get; }
Property Value
Type | Description |
---|---|
Ar |
The native ARCore configuration. |
Remarks
See the ARCore Configuration documentation for more details.
arSession
(Read Only) The native ARCore session whose corresponding configuration object will be set.
Declaration
public ArSession arSession { get; }
Property Value
Type | Description |
---|---|
Ar |
The current session object. |
config
Gets the native ARCore configuration that will be set.
Declaration
[Obsolete("Use arConfig to access the configuration. (2020-10-02)")]
public IntPtr config { get; }
Property Value
Type | Description |
---|---|
Int |
Remarks
Refer to Google's ArConfig documentation for more information.
session
Gets the native ARCore session whose corresponding configuration object will be set.
Declaration
[Obsolete("Use arSession to access the session. (2020-10-02")]
public IntPtr session { get; }
Property Value
Type | Description |
---|---|
Int |
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 |
---|---|---|
ARCore |
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(ARCore
Declaration
public static bool operator ==(ARCoreBeforeSetConfigurationEventArgs lhs, ARCoreBeforeSetConfigurationEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARCore |
lhs | The left-hand side of the comparison. |
ARCore |
rhs | The right-hand side of the comparison. |
Returns
operator !=(ARCoreBeforeSetConfigurationEventArgs, ARCoreBeforeSetConfigurationEventArgs)
Tests for inequality. Equivalent to !
Equals(ARCore
Declaration
public static bool operator !=(ARCoreBeforeSetConfigurationEventArgs lhs, ARCoreBeforeSetConfigurationEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARCore |
lhs | The left-hand side of the comparison. |
ARCore |
rhs | The right-hand side of the comparison. |