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 Niokizou · Jul 25, 2012 at 08:10 AM · iosresolutionsizedevice

Duplication of the scenes for different resolutions ?

Hello, I'm am currently working on a game with all the resolutions for iOS.

Do you know if I earn a lot of size if I duplicate all my scenes for each resolution (I check at the launch of the game on which device is the user to change directly to the good scene) ?

I am not an expert in development and maybe for you it's longer to do this but for me I think it will be faster :) . I just want to know if the size of my app will increase like hell :D.

For instance if I have 40 scenes (40 for IPAD, 40 for Iph4 & 40 for Iph3GS)

Thanks in advance !

Comment
Add comment · Show 3
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 Fattie · Jul 25, 2012 at 09:31 AM 0
Share

I wouldn't worry about it. Go for it.

Don't forget the iPad3 :O

avatar image Kryptos · Jul 25, 2012 at 10:08 AM 0
Share

If you duplicates your assets for each resolution, then yes it will takes a lot of space.

Actually I don't see what would be the gain to duplicate the scene, since scene and resolution are not linked to each other.

avatar image Fattie · Jul 25, 2012 at 10:23 AM 0
Share

$$anonymous$$ - as the user says, it's often much easier to just use different SCENES for say iPad3 v. iPad2. Don't forget you literally use different ASSETS for the different platforms. In many cases it's easier to just plain make different scenes (or whole games) than have lots of if-type code.

Dont forget too the screen SHAPES are often different, typically it's all different for each device.

1 Reply

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

Answer by Mizuho · Jul 25, 2012 at 09:39 AM

Your scenes run off the same resources. Once you load them in a scene, they stay there for all scenes and AREN'T duplicated for each scene. In other words, scenes only references things. They don't create instances of them for each scene. Creating multiple scenes won't change anything significant in terms of file size.

If you look at a standard scene file, it falls around 25kB, and that's all the memory it will take when you create another one. So 40 * 3 * 25 = 3000. It'll be about 3000kB, so roughly 3MB. Not too much.

Comment
Add comment · Show 3 · 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 Niokizou · Jul 25, 2012 at 09:47 AM 0
Share

Thank you very much for your answer, I will do this :) !

avatar image Kryptos · Jul 25, 2012 at 10:04 AM 0
Share

Well that is not entirely true. If you only use prefab and don't change their values, then yes the scene will only contain references to those prefabs.

But if you add gameobject not connected to prefabs, or change the default value of instantiated prefab in your scene, then the size will grow a bit as those values need to be serialized.

That said, the required space to store those changes is much less that the space taken by resources (such as texture). So in the end the size will not reach ridiculous high value (unless you have a lot of gameobjects and/or instantiated meshes).

avatar image Niokizou · Jul 25, 2012 at 10:18 AM 0
Share

Normally, if I make other scenes for the other resolutions, the gameobjects will be different too. For instance for 3GS, all my gameobjects will be different (size, textures & camera). But I think for 3GS I will make a script to change the camera settings and the size & texture of all my objects, I think it will be more simple. For Ipad, I will only change the position of my assets on other scenes.

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iOS GUIText size issue 1 Answer

Blurry / Pixelated images on Unity 3D for iOS, 1 Answer

GUI Size on different Android/iOS Devices? 3 Answers

Identifying iphone resolution isn't working for all devices 1 Answer

When exporting from Unity to Xcode my game is extremely pixelised 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