docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ARCoreBeforeSetConfigurationEventArgs

    Event arguments for the beforeSetConfiguration event.

    Implements
    IEquatable<ARCoreBeforeSetConfigurationEventArgs>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 object to compare against.

    Returns
    Type Description
    bool

    true if obj is of type ARCoreBeforeSetConfigurationEventArgs and Equals(ARCoreBeforeSetConfigurationEventArgs) also returns true. Otherwise, returns false.

    Overrides
    ValueType.Equals(object)

    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 other is equal to this instance. Otherwise, returns false.

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

    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

    true if lhs is equal to rhs. Otherwise, returns false.

    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

    true if lhs is not equal to rhs. Otherwise, returns false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)