Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Feedback: Ability to use Sprite Tight mesh inside Unity UI

Discussion in '2018.3 Beta' started by Peter77, Oct 4, 2018.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    I just saw this in change-log for b4:
    • UI: Adding the ability to use Sprite Tight mesh inside Unity UI
    https://unity3d.com/unity/beta/unity2018.3.0b4

    Really great that we can use tight packing now in the UI, very useful to reduce overdraw. I immediately gave this a try with a cross-hair, but the generated mesh isn't a good approximation of the shape. It works really well for a square though.

    screenshot.png

    Is there any chance the mesh generation can be improved? Perhaps expose settings to allow the user to control the generation to some degree. Things like a knob to allow the tool to generate more detailed meshes, for example to trade vertices against overdraw.
     
    Last edited: Oct 4, 2018
    Havokki and zulfajuniadi like this.
  2. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    I previously made a custom implementation for this that used the sprite's physics shape or outline. Having the same ability to modify the mesh in SpriteEditor would be great.
     
  3. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    644
    @Peter77 @Yozaro You can control how tight the mesh boundary of the sprite through
    SpriteEditor -> Custom Outline Window -> Outline Tolerance (0-1) -> Generate.

    Please let us know if this is what you are looking for.
     

    Attached Files:

    gresolio likes this.