• 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
0
Question by demille123 · Jan 24, 2013 at 02:47 AM · androidmobiletree

Features not to be found in unity android platform

i am using pc platform to develop game with complete prefab trees, grasses, with buttons ,progress bars,text etc.. when i converted or transferred it to android platform and build it coz i wanted it to be played on tablets..some of the trees and plants were missing. the fonts were also changed.. can anyone explain what happened to my situation??

regarding the scripts, i figured out how to change my onmouse functions to touch functions in javascripts..i might be able to handle the scripts... my problems are just the trees and others..

can anyone explain?? PLEASE :(

Comment
Add comment
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

2 Replies

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

Answer by jorjdboss · Jan 24, 2013 at 05:19 AM

Are you using Unity's trees, this may be the problem causing it to disappear. Also make sure to keep the draw calls in check and combine static meshes as much as possible. Check out the [Unity Mobile Optimisations][1] [1]: http://docs.unity3d.com/Documentation/Manual/MobileOptimisation.html . I'm sure you'll sort out your problem after going through it

Comment
Add comment · Show 2 · 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 jorjdboss · Jan 24, 2013 at 10:45 AM 0
Share

@$$anonymous$$aulik2208: Can't say if 100 is the correct maximum limit because the android hardware is so fragmented.

The best way to check it is to test on a mid-low end device first. Also depends on the shader used, if you use simple shaders(or no-lighting shaders), you have more room for draw calls because there's not much processing done in each batch of vertices that are rendered.

Also keep in $$anonymous$$d that there's a major tradeoff between number of vertices rendered in one frame and the number of draw calls. They should be balanced to get the best quality to performance.

If you have 1 huge mesh with everything in the level, the app will crash if it runs out of RA$$anonymous$$, because it has to load all the mesh data and textures into memory. On the other hand if you have 1000 individual meshes and at a certain point the camera looks at a large chunk of these meshes resulting in large number of draw calls, the app may crash because the gpu cant render too many meshes.

Tip: Unity's dynamic batching automatically combines static meshes which share the same material before sending them to the gpu. Batches upto 900 verts are accumulated. So you could divide your level into several meshes of about 900 verts each. So you're making the engine's work easier and the artist's work harder :P

avatar image Maulik2208 · Jan 24, 2013 at 11:03 AM 0
Share

@ jorjdboss please read my answer carefully 100 draw calls was my guess.....so no need to stick it....and here i want to clear on more thing even lighting can make huge impact on draw calls as well as memory also.......but here our concern was to check the possibilities (error and try method)......i have pointed just one thing for weird behave of app on device......and no one can surely say that whats going wrong without checking the whole project so one should check all the possibilities one by one.......and as a reference to the link given by you kindly notice that they are explaining all the things one by one so it is more suitable to go one by one to avoid lots of confusion and other panic.......Across the globe around 2500+ devices are there so how to deter$$anonymous$$e which is the basic model and lots more stuff out there.....i am not wanting to disappoint anyone but as per my opinion it's best practice 1) Reduce the number of DrawCalls first and then check for other things if the problem still persists..............

avatar image
0

Answer by Maulik2208 · Jan 24, 2013 at 05:25 AM

@jorjdboss has a point here....if you are having too much draw calls....then it will become the main reason for crashing the app.... or causing weird behave of app......So, first of all in unity's game window click on stats and check how many draw calls are there.... I guess for android it should be around 100 is good.....so if you are going more then it.... go for the optimizations of draw calls.....link is provided by @jorjdboss so i am not posting it again.....cheers enjoy.....Don't forget to mark if helped..........

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

11 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

Related Questions

Using foliage brush on static meshes 0 Answers

Fur on Characters for Unity Mobile Android / iPhone 1 Answer

Unity android huge fps drop on new devices 1 Answer

Unity Noob: Unknown identifier error after building project on Android platform. 0 Answers

Gravely need some optimization tips 3 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