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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Sprite padding for pre-trimmed sprite from external tool

Discussion in 'UGUI & TextMesh Pro' started by splash5, Nov 8, 2014.

  1. splash5

    splash5

    Joined:
    Nov 8, 2014
    Posts:
    13
    Hi, I'm using TexturePacker Importer to create my sprites.
    If the sprite is pre-trimmed by TexturePacker, there is no way to assign
    the padding of trimmed sprite.

    Is there any way to set padding of pre-trimmed sprite?
    Maybe SpriteMetaData can have a property call "padding" then we can assign
    padding of pre-trimmed sprite manually.
     
  2. KJoanette

    KJoanette

    Joined:
    Jun 8, 2013
    Posts:
    59
    Why is this still not an option? It exists for the native sprites, why not for external? This post is 4 years old and nothing has changed.
     
  3. CodeAndWeb

    CodeAndWeb

    Joined:
    Jul 31, 2014
    Posts:
    60
    This is simply because there is no API in Unity to set the information.
    We could use undocumented APIs but this is something I really don't want to do.