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

Unity UI Massive amounts of GC allocated in my UI

Discussion in 'UGUI & TextMesh Pro' started by WindwalkColin, Sep 4, 2019.

  1. WindwalkColin

    WindwalkColin

    Joined:
    Jan 28, 2019
    Posts:
    11
    Can anyone lend some advice. I just started looking into profiling my game's UI and I noticed that something in my UI is allocating massive amounts of memory for the GC to clean up.

    upload_2019-9-4_15-56-37.png 1
    Any ideas?
     
  2. WindwalkColin

    WindwalkColin

    Joined:
    Jan 28, 2019
    Posts:
    11
    Sike figured it out. Looks like I was using a script for some asset store assets I grabbed called GradientUI.cs

    It was calling VertexHelper's GetUIVertexStream() which was causing a bizarrely large amount of Allocs