docs.unity3d.com
    Show / Hide Table of Contents

    Class ARKitMeshSubsystemExtensions

    ARKit extension methods to the XRMeshSubsystem.

    Inheritance
    Object
    ARKitMeshSubsystemExtensions
    Namespace: UnityEngine.XR.ARKit
    Syntax
    public static class ARKitMeshSubsystemExtensions

    Methods

    GetClassificationEnabled(XRMeshSubsystem)

    Returns the current classification enabled state.

    Declaration
    public static bool GetClassificationEnabled(this XRMeshSubsystem subsystem)
    Parameters
    Type Name Description
    XRMeshSubsystem subsystem

    The meshing subsystem.

    Returns
    Type Description
    Boolean

    true if the mesh classification is enabled. Otherwise, false.

    GetFaceClassifications(XRMeshSubsystem, TrackableId, Allocator)

    Get the face classifications for the given mesh ID.

    Declaration
    public static NativeArray<ARMeshClassification> GetFaceClassifications(this XRMeshSubsystem subsystem, TrackableId meshId, Allocator allocator)
    Parameters
    Type Name Description
    XRMeshSubsystem subsystem

    The meshing subsystem.

    TrackableId meshId

    The trackable ID representing the mesh.

    Allocator allocator

    The memory allocator type to use in allocating the native array memory.

    Returns
    Type Description
    NativeArray<ARMeshClassification>

    An array of mesh classifications, one for each face in the mesh.

    SetClassificationEnabled(XRMeshSubsystem, Boolean)

    Sets the current classification enabled state.

    Declaration
    public static void SetClassificationEnabled(this XRMeshSubsystem subsystem, bool enabled)
    Parameters
    Type Name Description
    XRMeshSubsystem subsystem

    The meshing subsystem.

    Boolean enabled

    Whether the mesh classification should be enabled.

    Back to top
    Terms of use
    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