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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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

    Unity Technologies

    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"));