Search Unity

WWW + MovieTexture + Memory

Discussion in 'Scripting' started by rterranova, Jul 13, 2012.

  1. rterranova

    rterranova

    Joined:
    Nov 6, 2009
    Posts:
    43
    If I start a WWW on a movie (.ogv) file. The movie returns and the MovieTexture begins to download (stream) in the video and the MovieTexture.isReady flag becomes true. What happens If I start another WWW call for a different movie and then assign it to the Same MovieTexture that is currently playing. What happens to the memory of the first MovieTextures.

    Does Unity's garbage collector clear up the memory? Or do I need to do a Destroy on the first MovieTexture?