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 /
  • Help Room /
avatar image
0
Question by Kijun · Mar 04, 2011 at 10:28 AM · scenescene-loadingipadgarbage-collectiongc

garbage collection in between scene changes?

I have two scenes A and B. Scene B is more memory intensive than A.

I can load scene B from A without a problem, but when I try to go back to A from B, the iPad app crashes. I think the app might have been using too much memory and iOS was forced to kill it...

Hence my question: Does Unity unload gameobjects (and free memory) from the previous scene before changing to another?

Thanks for your help!

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

Answer by Jean-Fabre · May 09, 2011 at 05:46 AM

Hi,

Check this answer.

Bye,

Jean

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 sandworm · Sep 13, 2011 at 01:09 AM 0
Share

Link doesn't work, what's the answer?

avatar image vxssmatty · Sep 13, 2011 at 01:43 AM 0
Share

then search the 'Check this answer' link in Google and get this;

New and improved link; http://unity3d.qatohost.com/questions/50562/ipad-real-memory-accumulation-how-to-prevent-this.html

avatar image
0

Answer by Richard 3 · May 09, 2012 at 08:10 AM

I had a similar problem, even loading a blank scene started crashing my game. My problem was i had too many images in the Resources folder("which I created under assets"). The Resources folder loads everything in it into memory when the game starts. When the game was running the phone memory was getting used up by images that didn't necessarily need to be in memory all the time.

Hope this helps.

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 nicloay · Aug 25, 2017 at 02:19 PM 0
Share

Resources from "Resource" folder included to the build even if they don't have any references in the scenes or prefabs, but they does not load in to memory until you explicitly call Resource.Load method. They are also loaded as usual assets if you have any reference on them in the 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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Why is my scene not loading? 2 Answers

How to check when current scene has loaded? 0 Answers

Access render settings of other loaded scenes 0 Answers

List is not refreshing after LoadingScene 1 Answer

dontDestroyOnLoad doesn't work as expected with scene navigation 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