Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Unity rewarded ad memory leak

Discussion in '2D' started by ferhatckrk, Jan 2, 2021.

  1. ferhatckrk

    ferhatckrk

    Joined:
    Dec 31, 2020
    Posts:
    6
    Hello there. I added a video ad on unity. My game is a level-based mind game and ads are loaded into memory at each level. Each level is set as a stage. As the level progresses, the ideo ad loaded into the previous memory does not disappear and gets on top of it every time. I keep track of the ram usage and it keeps increasing at every level. After a while, the game shuts down. What can I do?
     
  2. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    unload the previous video
     
  3. ferhatckrk

    ferhatckrk

    Joined:
    Dec 31, 2020
    Posts:
    6
    how do i do this
     
  4. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    destroy and then unloadunusedassets