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

Bug Unity 2022.2.7 - Sprite Outline Shape Broken

Discussion in '2D' started by arachnidLeo, Feb 25, 2023.

  1. arachnidLeo

    arachnidLeo

    Joined:
    Nov 22, 2012
    Posts:
    13
    This issue started in version 2022.

    I have a custom outline for my sprite, however Unity is ignoring the custom outline and creating its own outline. This outline is showing parts of the sprite that I don't want it to show.

    You can see it here:
    upload_2023-2-25_11-12-22.png

    Note that my custom outline is completely different than the mesh Unity generates.
    upload_2023-2-25_11-14-15.png

    The sprite renderer for this component
    upload_2023-2-25_11-12-50.png

    And here's the source sprite sheet
    upload_2023-2-25_11-13-31.png


    Is there something I'm not getting here? I checked the documentation and the custom outline should control the generated mesh.
     
  2. DavidTeo

    DavidTeo

    Unity Technologies

    Joined:
    Apr 1, 2021
    Posts:
    69
    Hello, this is a shot in the dark, but by chance did you at any point of time open that sprite in the "Skinning Editor" within the "Sprite Editor"?

    I remember there's an issue which editing the sprite in the Skinning Editor will override the outline from "Custom Outline"
     
  3. arachnidLeo

    arachnidLeo

    Joined:
    Nov 22, 2012
    Posts:
    13
    Yes, I have some skinned sprites in this atlas as well, so I opened the skinning editor.

    Is that intended behavior that the skinning editor will override sprite outlines? If so I think it would be helpful to have it in documentation or even just a little warning tooltip in the sprite editor that tells you that!
     
  4. DavidTeo

    DavidTeo

    Unity Technologies

    Joined:
    Apr 1, 2021
    Posts:
    69
    Ah, that definitely explains the behaviour.
    Yes, it's indeed the intended behaviour for the Skinning Editor to override the custom outlines with the mesh outline generation. So for those sprites you will have to edit the mesh in the Skinning Editor instead.

    I'll feedback to the team regarding about your suggestion on informing the users, but I hope currently you are able to proceed with your production!
     
  5. arachnidLeo

    arachnidLeo

    Joined:
    Nov 22, 2012
    Posts:
    13
    Ok thanks for clearing that up!
    Yea, it would be nice to have some messaging that explains that. :)

    I'll just go into the skinning editor and edit those shapes.
     
    DavidTeo likes this.