• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by CakeCommander · Aug 20, 2013 at 05:38 PM · line drawing

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image whydoidoit · Aug 20, 2013 at 06:40 PM 0
Share

Interesting, perhaps something to do with ordering? Are you getting any failed shaders or other errors in the XCode console?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CakeCommander · Oct 17, 2013 at 01:58 PM 0
Share

Setting the Shader to "Particles/Additive" solved the problem. Thanks!

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I draw a line in Unity with mouse ....? 1 Answer

I have a rotating ball, how to use the line in turn on the surface of the ball to connect a few points up 0 Answers

Using GL to draw after OnGUI 1 Answer

What's the best way to draw a 2D line WITHOUT using LineRenderer? 1 Answer

Line renderer erase problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges