Search Unity

Resolved Quest 2 : remove red line!

Discussion in 'VR' started by christDuNord, May 19, 2021.

  1. christDuNord

    christDuNord

    Joined:
    Oct 24, 2020
    Posts:
    26
    Hello.
    How to remove (or hide) these red lines?
    Thanks

     

    Attached Files:

  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Lines like that don't just happen. You put something in your project to create those lines. Take it out. If you're not sure what it is, then (as it seems you're just starting out), delete everything in the scene except for the camera. That'll do it.
     
  3. christDuNord

    christDuNord

    Joined:
    Oct 24, 2020
    Posts:
    26
    Indeed I am starting;)
    Yes, there is a gun attached to the left controller.
    How to hide or remove this red line without having to remove the gun?
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Well, drill down into this gun object. Perhaps you'll find a LineRenderer you can turn off.
     
  5. christDuNord

    christDuNord

    Joined:
    Oct 24, 2020
    Posts:
    26
    There is no linerenderer in the gun.
    It is linked to an adjustment of the XR but I do not know where!
     
  6. christDuNord

    christDuNord

    Joined:
    Oct 24, 2020
    Posts:
    26
    i found : remove "XR interactor line visual"
     
    JoeStrout likes this.
  7. thebunny16483aj

    thebunny16483aj

    Joined:
    Feb 28, 2022
    Posts:
    1
    How exactly do you do that?
     
  8. hnoury

    hnoury

    Joined:
    Oct 19, 2023
    Posts:
    1
    In my case, I am using XR Origin (XR Rig), in Unity Editor 2022.3.

    In XR Origin > Camera Offset (child) > Left Controller (child) > XR Interactor Line Visual (component).
    Same for a Right Controller.

    I just deactivated it, no need to remove it if you are just starting to use Unity.