Search Unity

Dynamically loading and unloading sprites

Discussion in '2D' started by Mish, Dec 7, 2016.

  1. Mish

    Mish

    Joined:
    Apr 23, 2010
    Posts:
    96
    Hi,

    We have in our game a lot of very large sprite sheets, which take up huge amounts of memory. We have compressed and packed them as tightly as possible, but we still need to free up more memory.

    We have also tried loading animations from Resources and then overriding our current Animator Controller with the Animator Override Controller, but it doesn't seem to be a reliable solution as the loading and unloading from Resources isnt always fast enough to keep up with the animation transitions.

    Does anyone have experience with similar issues?
     
  2. JC_SummitTech

    JC_SummitTech

    Joined:
    Nov 1, 2016
    Posts:
    78
    You probably dont want to unload stuff youll need on the next animation. Loading and unloading resources makes sense in a per level (or scene) basis, but it's not lightning fast.
     
    theANMATOR2b likes this.