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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Issues with multiple svgs in Unity

Discussion in '2D Experimental Preview' started by boasbakker123, Jan 22, 2023.

  1. boasbakker123

    boasbakker123

    Joined:
    Jan 22, 2020
    Posts:
    11
    Hello,
    I have some svgs, which all have issues loading in. Some just give an error, and some have a black background while it should be transparent, and are misaligned. Those svgs also have an "atlas" item in the inspector.
    I put some of them in a zip. They are a total of 3 fully broken ones, and 13 with a black background, out of the 63 I use in my game.
    Brandenburger Tor.svg is fully broken
    European Buildings.svg is fully broken
    Temple.svg is fully broken

    I also have another issue, while rendering all svgs in a scene at once, my framerate drops to around 10. How can I improve the performance of the SVG rendering?
     
  2. boasbakker123

    boasbakker123

    Joined:
    Jan 22, 2020
    Posts:
    11
    Oh forgot to actually upload the zip haha
     

    Attached Files:

  3. boasbakker123

    boasbakker123

    Joined:
    Jan 22, 2020
    Posts:
    11
    upload_2023-1-23_18-57-35.png
    This is the profiler window
     
  4. boasbakker123

    boasbakker123

    Joined:
    Jan 22, 2020
    Posts:
    11
    I fixed the lag issue by disabling the pixel perfect value of the Canvas