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 n8 · Apr 22, 2011 at 08:08 PM · androidiphoneperformanceipaddrawcalls

Best way to create/design modular Player

So I had an idea for the game that I am working on to have a the main character be completely modular and upgradable. The player is a robot and I would like to have each piece (torso, head, legs, left arm, right arm) to be able to be switched out and upgraded with better parts.

I am wondering what is the best method to go to create the different parts and have them be assembled at runtime. I have started with just basic unity native shapes as prototypes for the different pieces.

What would be the best way to accomplish this without killing the draw-calls on the iphone/ipad/android?

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
2
Best Answer

Answer by Muzz 1 · Apr 22, 2011 at 08:30 PM

One of the best ways is to model your character with ABSOLUTELY EVERYTHING ON HIM! Then, just make everything not relevent invisible. This is a really good, quick method, and allows you to have lots of items with little speed impact. (Also, the character with all the suits etc on looks awesome!)

Comment
Add comment · Show 5 · 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 Myth · Apr 22, 2011 at 09:13 PM 0
Share

I'm doing something similar, but for pc. Is there really no loss in frames etc. because there will be up to about 125 upgrades per "player model" in my game?

avatar image n8 · Apr 25, 2011 at 08:47 PM 0
Share

yeah i have the same question. If you are offering tons of different upgrades or just want randomly generated body parts (stats,equipment etc) would you really want to have to model everything upfront? It makes more sense to me to model the individual pieces and then let the engine put them together. But Once again, I am noob so that may be totally wrong

avatar image n8 · Apr 25, 2011 at 08:50 PM 0
Share

to clarify, i don't want my character to have a single upgrade path. I would like each part to be upgraded individually and I would like for each body part to carry a set of stats that could be randomly generated (enemy spawns with random amount of strength,shield, etc)

avatar image Muzz 1 · Apr 26, 2011 at 05:47 AM 0
Share

This is what I saw someone do, and they had huge amounts of upgrades, and it had a really good framerate.

avatar image n8 · Apr 26, 2011 at 02:49 PM 0
Share

ok cool. I am just trying to wrap my head around it. I can see how this would work, just was a bit worried about scenarios with large number of updates. do you know if the objects that are being hidden are still being sent to the gpu?

avatar image
0

Answer by Jeliel · Apr 20, 2012 at 12:48 PM

you can create bones in the position that you need your Armor / Weapon to be instantiated and use them as Transforms. never tried it but i imagine that it works since these bones will move and rotate with your character

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

1 Person is following this question.

avatar image

Related Questions

How to maintain the speed of the game on different android devices... 2 Answers

Poor fog performance on the iPad? 2 Answers

Halo effect perfomance on mobile devices 1 Answer

iPhone 4 game lags 2 Answers

How to check a device volume level? 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