Search Unity

Animated uGUI buttons allocate memory

Discussion in 'UGUI & TextMesh Pro' started by iivo_k, Nov 21, 2014.

  1. iivo_k


    Jan 28, 2013
    I have a bunch of button with transition animations that change the sprite and material. Even when the buttons just sit there in the default state, Animator.Update allocates memory each frame through Graphic.SetLayoutDirty. Why does it happen and is there some way to avoid it? I didn't report a bug, since I'm not sure if it's something that's expected with animators.