Struct ARCoreBeforeSetConfigurationEventArgs
Event arguments for the beforeSetConfiguration event.
Namespace: UnityEngine.XR.ARCore
Syntax
public struct ARCoreBeforeSetConfigurationEventArgs : IEquatable<ARCoreBeforeSetConfigurationEventArgs>
Constructors
ARCoreBeforeSetConfigurationEventArgs(IntPtr, IntPtr)
Constructs an ARCoreBeforeSetConfigurationEventArgs.
Declaration
[Obsolete("Use ARCoreBeforeSetConfigurationEventArgs(ArSession, ArConfig) instead. (2020-10-02)")]
public ARCoreBeforeSetConfigurationEventArgs(IntPtr session, IntPtr config)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | session | The native ARCore session whose corresponding configuration object will be set. |
| IntPtr | config | The native ARCore configuration which will be set. |
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
(Read Only) The native ARCore configuration which will be set.
Declaration
public readonly ArConfig arConfig { get; }
Property Value
| Type | Description |
|---|---|
| ArConfig |
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 readonly ArSession arSession { get; }
Property Value
| Type | Description |
|---|---|
| ArSession |
config
(Read Only) The native ARCore configuration which will be set.
Declaration
[Obsolete("Use arConfig to access the configuration. (2020-10-02)")]
public readonly IntPtr config { get; }
Property Value
| Type | Description |
|---|---|
| IntPtr |
Remarks
See the ARCore Configuration documentation for more details.
session
(Read Only) The native ARCore session whose corresponding configuration object will be set.
Declaration
[Obsolete("Use arSession to access the session. (2020-10-02")]
public readonly IntPtr session { get; }
Property Value
| Type | Description |
|---|---|
| IntPtr |
Methods
Equals(Object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | The |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Overrides
Equals(ARCoreBeforeSetConfigurationEventArgs)
Tests for equality.
Declaration
public bool Equals(ARCoreBeforeSetConfigurationEventArgs other)
Parameters
| Type | Name | Description |
|---|---|---|
| ARCoreBeforeSetConfigurationEventArgs | other | The other ARCoreBeforeSetConfigurationEventArgs to compare against. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet and Dictionary.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | A hash code generated from this object's fields. |
Overrides
Operators
Equality(ARCoreBeforeSetConfigurationEventArgs, ARCoreBeforeSetConfigurationEventArgs)
Tests for equality. Same as 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 |
|---|---|
| Boolean |
|
Inequality(ARCoreBeforeSetConfigurationEventArgs, ARCoreBeforeSetConfigurationEventArgs)
Tests for inequality. Same as !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 |
|---|---|
| Boolean |
|