Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Application crashed when executing "SpatialMappingManager.Instance.DrawVisualMeshes = false"

Discussion in 'VR' started by shuiliuli, Aug 10, 2016.

  1. shuiliuli

    shuiliuli

    Joined:
    Aug 10, 2016
    Posts:
    2
    Application crashed when executing "SpatialMappingManager.Instance.DrawVisualMeshes = false" in my scene.
    What can I do for this?Does anyone get it?
     
  2. dwmsco

    dwmsco

    Joined:
    Nov 6, 2014
    Posts:
    13
    I disable the drawing of visual meshes in projects all the time. Can you give a bit more info on what you're doing?
     
  3. BrandonFogerty

    BrandonFogerty

    Joined:
    Jan 29, 2016
    Posts:
    83
    Hi @shuiliuli

    How are you creating your spatial mapped mesh? Are you using the SurfaceObserver API directly or are you using our builtin spatial mapping component?

    Do you have a simple repro project that we can look at?

    Thanks!
     
  4. shuiliuli

    shuiliuli

    Joined:
    Aug 10, 2016
    Posts:
    2
    Thanks for your replies, I am trying it in a simple scene.
    In my current scene,I use "SpatialMappingManager.Instance.DrawVisualMeshes = true" to create the spatial mapped mesh When start();
    Next,execute "GameObject.Instantiate(Resources.Load("");" to load models.
    After loading, execute "SpatialMappingManager.Instance.DrawVisualMeshes = false",and then tha application crashed.