Search Unity

Few improvements requested to Sprite Class, Sprite Editor and Sprite Packer

Discussion in '2D' started by Stephan-B, Feb 3, 2015.

  1. Stephan-B

    Stephan-B

    Joined:
    Feb 23, 2011
    Posts:
    2,269
    I have been working on adding support for users to be able to mix Sprites / Graphics Inline with the text in TextMesh Pro. Using Unity's Sprite system to manage those Graphic elements seemed logical but left me wanting for some additional functionality.

    Sprite Class
    Is there a reason why all the properties of the class are Read-only? It would be nice to be able to change pivot or borders of those existing sprites or assign different names to those sprites via the API.

    Sprite Editor
    * Add equivalent of Method "Safe" to retain existing Sprite Information when using Grid Mode to slice the sprites.

    Sprite Packer
    * Add a function to get either a List<Sprite> or Sprite[] of all the sprites packed by the Sprite Packer using a given Packing Tag.

    NOTE: Short list thus far but I'll add more as needed.
     
    theANMATOR2b likes this.
  2. DustyMcp

    DustyMcp

    Joined:
    May 23, 2013
    Posts:
    25
    afaik the pivots are added through the animation rather than having them static.
     
  3. Stephan-B

    Stephan-B

    Joined:
    Feb 23, 2011
    Posts:
    2,269
    The pivot for the individual sprites can be edited in the Sprite Editor but there is no API function (that I have found) to allow those to be changed.