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 DFiable · Jul 07, 2012 at 03:14 AM · iosmemoryresourcesunloading

Memory problem. How do I dump a Streaming Asset from memory?

I'm working on an iPhone game app. I've tried a couple of things to unload my movie from memory. I tried putting the (GameObject(prefab) with the movieScript attached to it) into my Resources folder and then instantiated it into In the first scene, then I call Resources.UnloadUnusedAssets() in the second scene which is only contains an empty game object(Interstitial scene) This doesn't work because my Streaming Assets Folder takes precedence over everything and my script automatically calls from the Streaming Assets Folder. How do I play a movie and then dump it from memory? My movie script is below from scene 1:

  function Start () {
     Handheld.PlayFullScreenMovie ("MyMovie94.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
     Application.LoadLevelAsync("InterScene1");
     
 }

This is the script in my second(empty)scene 2:

 #pragma strict
 
 function Start (){
     yield WaitForSeconds(3);
     
      Resources.UnloadUnusedAssets();
     
     
 }


Would please show me how to unload memory(a movie) created from my Streaming Assets Folder? Thanx

Comment
Add comment · Show 1
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 DFiable · Jul 07, 2012 at 09:59 PM 0
Share

Nobody has any ideas?

1 Reply

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

Answer by DFiable · Jul 09, 2012 at 09:27 PM

http://forum.unity3d.com/threads/142729-How-do-you-unload-memory-from-a-movie-called-from-the-StreamingAssets-Folder

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

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

Unloading unused Assets to reduce memory usage,then Not responding ? 0 Answers

Best way to manage hundreds of materials? 1 Answer

Loading a Random Resource in a Folder Without Using Resources.LoadAll 0 Answers

Memory overhead associated with assets in Resources 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