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

    (Read Only) The native ARCore configuration which will be set.

    Declaration
    public 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 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 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
    bool

    True if every field in other is equal to this ARCoreBeforeSetConfigurationEventArgs, otherwise 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. 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
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(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
    bool

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

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 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)