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
5
Question by invulse · Dec 21, 2010 at 05:51 PM · iosmeshdesktop

How do you change meshes between different target platforms?

The game I am currently working on is targeted at both desktop and iOS, but of course I would like to keep my tri's down on the iOS platform. How would I be able to specify a different mesh to be used for a character when running on the iOS platform as opposed to the desktop?

Comment
Add comment · Show 2
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 fireDude67 · Dec 21, 2010 at 05:54 PM 0
Share

Different Projects?

avatar image Statement · Dec 21, 2010 at 06:04 PM 2
Share

Good question. Love to see the answer for this considering Unity is targeting multiple platforms.

2 Replies

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

Answer by gtjuggler · Nov 01, 2011 at 04:47 AM

Meshes can be swapped per-platform using my simple example in this thread here: http://forum.unity3d.com/threads/108637-MultiPlatform-ToolKit-Multiplatform-development-simplified.?p=727256&viewfull=1#post727256

That kind of swapping doesn't require the MultiPlatform ToolKit, but using its platform defines helps to clearly and simply determine which platform you'd like to spawn what mesh.

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
avatar image
1

Answer by Dwair · Dec 22, 2010 at 03:12 PM

Mmhh, interesting issue...

I suppose you could do many things like using a function that chooses depending the compilation method on a switch statement asking for application.platform property and then instantiating the right mesh, or even better, an entire prefab with mesh textures and other things adapted to iOS (I make something like that myself when developing iPhone/iPad/retina games).

But is it really necessary for your game? I mean, one is a big resourceful machine and the other one has limited space/performance resources. And more important, mobile users are most concerned about binary size.

If you're only concerned in polycount issues, you could try to use mesh.optimize for reducing triangles, but I personally didn't tried it yet in iPhone, and probably won't strip down that much for the requirements of iOS machines...

Anyway, multiplatform is always an issue, but trying to "one-size-fits-all" everything on the pipeline probably will end with a too-big, too-slow game, and we don't want that, right? ;)

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 invulse · Dec 22, 2010 at 07:49 PM 0
Share

It seems strange to me that there isn't a default way in the editor to specify a mesh for a specific platform. In the case of the game I am working on, it is fairly important seeing that there can be 15-20 characters on screen at once. In the case of the iOS I need to keep the visible vertex count below 10$$anonymous$$, and if possible for Desktop I would like to use characters with a vertex count over 1$$anonymous$$.

avatar image Dwair · Dec 24, 2010 at 11:54 AM 0
Share

Yes, my point exactly! There's just too much differences between platforms and will need different meshes. The point is when copying files to assets folder, you'll load all those files in each binary, when in reality you'll only always use one mesh...so as long as we don't have a method to compile different assets folders for different platforms (as far as I'm aware) our only option is using dynamic load in Start() functions, and risking to use too much space for a iPhone game.

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

Connecting two meshes. 1 Answer

GPU performance with tris and verts 1 Answer

iOS Crash - s_SkinVertices4Bones_Tangents_NEON_loop 0 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Text Meshes not rendering correctly on iOS device 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