docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ArConfig

    Represents the configuration for an ArSession.

    Implements
    IEquatable<ArConfig>
    IDisposable
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARCore
    Assembly: solution.dll
    Syntax
    public struct ArConfig : IEquatable<ArConfig>, IDisposable
    Remarks

    This is an opaque object that represents a native ArConfig.

    Constructors

    Name Description
    ArConfig(ArSession)

    Creates a new session configuration and initializes it to a sensible default configuration.

    Properties

    Name Description
    IsNull

    (Read Only) Indicates whether this ArConfig is null. This property is deprecated. Use the equality operator (==) to compare with null instead.

    Null

    Represents a null ArConfig, i.e., one whose underlying native pointer is null. This property is deprecated. Use default instead.

    Methods

    Name Description
    AsIntPtr()

    Gets the underlying native pointer for this ArConfig.

    Dispose()

    Destroys this ArConfig and sets the underlying native pointer to null.

    Equals(object)

    Tests for equality.

    Equals(ArConfig)

    Tests for equality.

    FromIntPtr(IntPtr)

    Creates an ArConfig from an existing native pointer. The native pointer must point to an existing ArConfig.

    GetHashCode()

    Generates a hash code suitable for use with a HashSet or Dictionary

    Operators

    Name Description
    operator ==(ArConfig?, ArConfig?)

    Tests for equality.

    operator ==(ArConfig, ArConfig)

    Tests for equality. Same as Equals(ArConfig).

    explicit operator IntPtr(ArConfig)

    Casts an ArConfig to its underlying native pointer.

    operator !=(ArConfig?, ArConfig?)

    Tests for inequality.

    operator !=(ArConfig, ArConfig)

    Tests for inequality. Same as the negation of Equals(ArConfig).

    See Also

    beforeSetConfiguration
    ARCoreBeforeSetConfigurationEventArgs
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023