Skip to content

[Bug] ARMeshManager is not able to delete meshes completely #1190

@lilsleepee

Description

@lilsleepee

Unity bug report case number
CASE IN-82376

Describe the bug
ARMeshManager.DestroyAllMeshes does not delete meshes completely and when ARMeshManager is re-enabled (ARMeshManager.enable = true) the manager creates previous meshes to be deleted

To Reproduce
Steps to reproduce the behavior:

  1. Enable mesh manager and scan the room (ARMeshManager.enable = true)
  2. Disable mesh manager and delete spawned meshes via ARMeshManager.DestroyAllMeshes (ARMeshManager.enable = false; ARMeshManager.DestroyAllMeshes())
  3. Enable mesh manager (ARMeshManager.enable = true)
  4. Deleted meshes are created again even in parts of the room where you are not scanning this time but were scanned last time.

Expected behavior
Deleted meshes should not be created again, ARMeshManager should be able to start the scan from scratch

Actual behavior
ARMeshManager.DestroyAllMeshes does not delete meshes completely and when ARMeshManager is re-enabled (ARMeshManager.enable = true) the manager creates previous meshes to be deleted

Smartphone (please complete the following information):

  • Device: [e.g. iPad Pro 12.9-inch 5th generation]
  • OS: [e.g. iOS 17.5.1]
  • Unity version 2022
  • ARFoundation version 5.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions