Search Unity

When the sprite render is off does it still take up memory?

Discussion in '2D' started by clearrose, May 27, 2015.

  1. clearrose

    clearrose

    Joined:
    Oct 24, 2012
    Posts:
    349
    When the sprite render is off does it still take up memory? or use up any kind of performance, gpu, cpu etc..?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Yes, it still uses memory. It uses CPU if it has a script attached.

    --Eric
     
  3. clearrose

    clearrose

    Joined:
    Oct 24, 2012
    Posts:
    349
    OK, ours are just animating using the unity animation timeline. We didn't attach any new scripts. What I wanted to do is save memory by turning off the sprite renderer when the sprite is offscreen.
     
  4. clearrose

    clearrose

    Joined:
    Oct 24, 2012
    Posts:
    349
    bump, will this work?
     
  5. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    I already answered the question; not sure what else you expect. I'm not going to change my answer. ;)

    --Eric
     
    Skelly1983 and theANMATOR2b like this.