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
0
Question by masayukiyuda · Feb 28, 2015 at 01:48 PM · gameobjectscritpingpolygon-count

Increase / Decrease polygon count of an object in Unity

I would like to ask if it is possible to increase/decrease(change) the polygon count of an object in Unity through script. Thanks for the reply

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DaDonik · Mar 01, 2015 at 11:52 AM

There are several assets on the asset store which can reduce the polycount of your models. All of them are meant to be used inside the editor, not ingame.

The LOD system NoseKills mentioned is a Unity Pro feature and does not reduce the polycount of your models. LOD simply swaps out a model with one that has less polygons. The models with different polycounts still have to be made by you.

The following assets from the asset store seem to do what you want:

Cruncher

Simple LOD

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 masayukiyuda · Mar 04, 2015 at 10:32 AM 0
Share

Thanks for the info. but aren't there a free method like scripting it

avatar image
0

Answer by NoseKills · Feb 28, 2015 at 01:50 PM

Yes it is. Unity has an LOD system for meshes, and you can also dynamically modify Mesh.vertices & other mesh properties in scripts.

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 masayukiyuda · Mar 01, 2015 at 11:09 AM 0
Share

Thank you for the reply sir do you have a sample script for this method?

avatar image
0

Answer by Brain-_-Fail · Feb 24, 2020 at 07:13 AM

Lowering the polygon count is key to increasing performance especially when building for low end devices like mobile phones. Often at times it becomes difficult / expensive or very slow to lower the Polygon count of 3d geometry. You can check out my tool on the unity asset store "Poly Few". It can automatically reduce polygon count of any type of 3d model within a few clicks. Moreover, it has integrated features like automatic LOD generation, mesh merging and material combining, which can greatly improve the performance of your game by further lowering the DrawCalls and SetPass calls, All without the need of writing even a single line of code.

https://assetstore.unity.com/packages/tools/utilities/poly-few-mesh-simplifier-and-auto-lod-generator-160139

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers

Multi object detection with single ray cast 1 Answer

All the objects in my script choose the same target. 2 Answers

How can I add the OnTriggerEnter function to all game objects that I instantiate? 1 Answer

Moving an object based on position of other object 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