Search Unity

Anyone having trouble with Linerenderer and ARKit ?

Discussion in 'AR' started by sfilippo, Feb 12, 2018.

  1. sfilippo

    sfilippo

    Joined:
    Sep 30, 2017
    Posts:
    5
    ...as specified in subject no matter what kind of material I use together with the lineRenderer, what happens is that is not working on my Arkit App.

    It works fine on the editor until built and run on the iPhone.

    The only thing I see instead of the lineRenderer is a magenta poligon flipping around the camera.

    Anyone with the same issue?
     
  2. Autarkis

    Autarkis

    Joined:
    Oct 10, 2011
    Posts:
    318
    Not seen it here. I'm dealing with quite a few line renderers in our ARKit apps and it works fine on iphones and ipads.
     
  3. jimmya

    jimmya

    Joined:
    Nov 15, 2016
    Posts:
    793
    I'm using a linerenderer in our ARKit 1.5 update for the detail boundaries of the planes. Your problem appears to be that you're using a material for the linerenderer that is not supported on iOS.
     
  4. sfilippo

    sfilippo

    Joined:
    Sep 30, 2017
    Posts:
    5
    Thank you all,

    fixed my issue using a supported material

    lineRenderer.material = new Material (Shader.Find ("Sprites/Default"));