docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Mesh classification

    Understand the mesh classification feature.

    In AR Foundation 6.4 and newer, you can enable mesh classification on supported platforms to apply semantic labels of detected meshes. Enable mesh classification to improve understanding of the real-world environment.

    Uses for mesh classification

    Mesh classification enables you to use semantic labels of meshes to improve your app's understanding of the physical environment. You can use these semantic labels to improve features of your application that rely on understanding of the physical environment, for example:

    • Accurate physics
    • Object placement
    • Navigation

    Enable mesh classification

    There are two ways to enable mesh classification:

    1. Open the ARMeshManager in the Inspector window, and enable Classification.
    2. Use the submeshClassificationEnabled API.
    Note

    Some platforms might require a restart of the XRMeshSubsystem to enable mesh classification via scripting.

    Once you have enabled mesh classification, you can use TryGetSubmeshClassifications to obtain classifications using Mesh ID.

    Mesh classification reference

    AR Foundation provides the following mesh classifications:

    Name Description
    Ceiling Mesh classification as a ceiling.
    Door Mesh classification as a door.
    Floor Mesh classification as a floor.
    Other Generic other mesh classification.
    Seat Mesh classification as a seat/chair.
    Table Mesh classification as a table.
    Unknown Unknown/no mesh classification.
    Wall Mesh classification as a wall.
    Window Mesh classification as a window.
    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)