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
2
Question by Yossi Horowitz · Feb 20, 2011 at 05:27 PM · androidterrainbuildiphonetrees

How do I leave some GameObjects out of a build?

I'm working on a project that I'd like to be able to build to multiple platforms (Web, Android, iOS). The web version of the game makes heavy use of terrain and trees, which aren't supported by the mobile versions of Unity.

When building the mobile versions of the game, I'd like the build process to omit the terrain and the trees. (Eventually, I'd like the build process to automatically iterate through the scene and dynamically swap in certain substitute objects in their place, but I'm not up to that yet. :-) )

The naive solution to this problem is to spin off the project into a branch and just delete the terrain and the trees, but I'm looking for a solution that will allow me to publish from my original scene files to all platforms, so that if I need make any updates it's straightforward to propigate them to all versions. For similar reasons, I'd like a solution that does not modify the original scene files as part of the build process.

Is what I'm looking for possible?

Thanks in advance!

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 yoyo · Feb 20, 2011 at 09:58 PM 0
Share

Sort of a scene equivalent of #if conditional code compilation. Good idea, but I'm not sure how. One possibility might to put as much as you can into prefabs, create platform-specific prefabs where needed, and then have a small/simple scene per platform from which you do the build. (But I haven't done much with either multiple platforms or multiple scenes, so take this with a grain of salt.)

avatar image Yossi Horowitz · Feb 23, 2011 at 03:54 AM 0
Share

That's really interesting. It sounds pretty tedious, but at least it would work, if nobody comes up with an easier answer. Thanks!

0 Replies

· Add your reply
  • Sort: 

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

No one has followed this question yet.

Related Questions

Distribute terrain in zones 3 Answers

Mobile Terrain in AssetBundles on IOS and Android 1 Answer

Things/features not available on android 0 Answers

testing ios build on device 3 Answers

SDK Build Tools version 23.0.3 < 25.0.0. 2 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