Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

AR Foundation AR Plane Debug Visualiser mesh renderer and line renderer problem

Discussion in 'AR' started by enhawk, Nov 15, 2018.

  1. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    832
    In AR Plane Debug Visualiser I am turning off mesh renderer and line renderer, but when running in the scene, they turn back on.

    Can this be respected or is there a way to make sure these don't become active again?
     
  2. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    The debug visualizer is for, well, debugging. You're free to create your own prefab with whatever components and logic you like.
     
  3. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    832
    Ah sorry I meant when I turn off the components, they turn back on when running the scene. Screen Shot 2018-11-20 at 12.13.20.png
     
  4. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    The ARPlaneMeshVisualizer enables and disables these components (when present) based on the tracking state of the plane. I was suggesting that you either create a new prefab that does not have have a mesh renderer or line renderer, or, if you want to perform some other logic, copy or subclass the ARPlaneMeshVisualizer to customize it.
     
  5. weareroyale

    weareroyale

    Joined:
    Oct 23, 2014
    Posts:
    4
    Is it possible to get a mesh visualizer that draws the lines between the vertices rather than filling the whole mesh with a solid fill? I've been looking for solutions and really have no idea how to get started.
     
    Last edited: Dec 4, 2020