docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ARKitMeshSubsystemExtensions

    ARKit extension methods to the XRMeshSubsystem.

    Inheritance
    object
    ARKitMeshSubsystemExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARKit
    Assembly: Unity.XR.ARKit.dll
    Syntax
    public static class ARKitMeshSubsystemExtensions

    Methods

    GetClassificationEnabled(XRMeshSubsystem)

    Whether mesh classification is enabled.

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

    The meshing subsystem.

    Returns
    Type Description
    bool

    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, bool)

    Sets whether mesh classification should be enabled.

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

    The meshing subsystem.

    bool enabled

    Whether the mesh classification should be enabled.

    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)