docs.unity3d.com
    Show / Hide Table of Contents

    Struct ARCoreBeforeSetConfigurationEventArgs

    Event arguments for the beforeSetConfiguration event.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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

    The current session object.

    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 object to compare against.

    Returns
    Type Description
    Boolean

    True if obj is of type ARCoreBeforeSetConfigurationEventArgs and Equals(ARCoreBeforeSetConfigurationEventArgs) also returns true; otherwise false.

    Overrides
    ValueType.Equals(Object)

    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

    True if every field in other is equal to this ARCoreBeforeSetConfigurationEventArgs, otherwise false.

    Implements
    IEquatable<T>.Equals(T)

    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
    ValueType.GetHashCode()

    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

    True if lhs is equal to rhs, otherwise false.

    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

    True if lhs is not equal to rhs, otherwise false.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023