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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unloading Animation clips from memory

Discussion in 'Animation' started by chees502, Jul 21, 2015.

  1. chees502

    chees502

    Joined:
    Jan 25, 2014
    Posts:
    22
    Right now I am using the Animation component to load AnimationClips. However I have lots of animations (95 MB worth) and those are all loaded into memory. I made a system that would use the Animation.AddClip() and Animation.RemoveClip() to only have animations I need loaded up at any time. but, Looking at the profiler, all of my animations are still always loaded. Am I using these methods incorrectly? other than memory management, I can't think of why you would need to remove a clip.

    Any suggestions/workarounds?
     
  2. chees502

    chees502

    Joined:
    Jan 25, 2014
    Posts:
    22
    Solved: reference was maintained through a prefab definition