- Home /
Line renderer issue on IOS
Hi,
I've got a line renderer in my scene at a fixed location, with a diffuse material. It is rendered by an orthographic camera using camera.render(), after which a perspective camera draws the rest of the scene. This method works in Windows & Android builds, however on IOS it does not appear.
Is there any issues using line renderers on IOS that I've overlooked?
Interesting, perhaps something to do with ordering? Are you getting any failed shaders or other errors in the XCode console?
Answer by HeliosDoubleSix · Aug 20, 2013 at 06:49 PM
Maybe your shader doesn't work on iOS though if you are using diffuse.. should be fine, try using "Particles/Additive" maybe try other iOS/Mobile specific shader
Also, Line Renderers do not batch together to eliminate draw calls so can be a performance hit on iOS/Mobile due, have a look at 'Vectrosity' in asset store and consider using that if you are drawing a lot of separate lines or need more advanced line drawing.
Setting the Shader to "Particles/Additive" solved the problem. Thanks!
Answer by beartrickey · Sep 29, 2013 at 11:32 PM
Any updates on this issue? LineRenderer does indeed seem to be broken for iOS. I'll post here if I find a workaround. For reference, I'm using Unity 4.2.1 and 2D Tool Kit.