Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 Bill Cosby · Nov 28, 2012 at 11:36 PM · meshperformanceviewtriangles

View triangle count of a scene?

This one's probably a kind of noobish question, but I've looked all over and can't seem to find an answer. Does Unity have a feature or a script to view the total number of triangles in a given scene? I found this script: http://wiki.unity3d.com/index.php?title=PrintPolyCount but it only shows the triangles on the object it's attatched to, which isn't very helpful.

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

1 Reply

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

Answer by Screenhog · Nov 28, 2012 at 11:37 PM

Have you looked at the Stats? When playing a game in the Editor, click the Stats button in the top right. It'll give the number of tris that are being rendered/calculated.

It's not exactly what you're looking for, though. Any particular reason you want to know all triangles in the whole scene?

Comment
Add comment · Show 4 · 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 Bill Cosby · Nov 28, 2012 at 11:41 PM 0
Share

I hadn't seen the Stats button before, but that's exactly what I'm looking for. I was wanting to know the triangles of the whole scene because I don't have Unity Pro, so I don't have the occlusion culling feature and I'm trying to keep things under a certain triangle count. Thanks for your help!

avatar image Screenhog · Nov 28, 2012 at 11:50 PM 0
Share

No problem!

Be aware, though, that the number of tris and vertices that it shows may not actually be accurate to what you expect, for a number of reasons:

  1. Certain lights reacting with certain shaders can make an object have double or triple the number of draw calls. When this happens, the number of tris that Unity will report that object to have will also double or triple.

  2. If you have an object that's partly on-screen, but partly off, it will still compute the off-screen faces, and I believe that number gets reported.

What Unity tells you is the number of triangles it has to compute, which is the more useful number in the end. However, it's weird at first to see a cube that you know has 12 faces showing up as more than that, so heads up.

avatar image Bill Cosby · Nov 28, 2012 at 11:52 PM 0
Share

That's really helpful to know, thanks so much for the help! I'm just using the simple mobile shaders, so hopefully that won't skew the numbers or anything.

avatar image Screenhog · Nov 28, 2012 at 11:59 PM 0
Share

Those shaders are designed to have as few draw calls as possible (1 usually, never more than 2), so you should be fine there.

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.

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

Generated Mesh Triangles not Being Made/Visible? 1 Answer

Problem drawing a mesh with Graphics.DrawMeshNow 1 Answer

Best way to render a character with extra accessories? 1 Answer

To what extent can the tree system be used instead of the details system 0 Answers

Failed setting triangles in my mesh 1 Answer


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