Using a shader with single sprite from a sprite sheet



  • Hello,
    Whenever I use attempt to use your shader with a sprite I have sliced out from a sprite sheet, it treats the whole sprite sheet as a single image.

    Conifguration:
    0_1520183247750_Screen Shot 2018-03-04 at 11.06.17 AM.png

    Sprite Sheet:
    0_1520183345161_wep_woodenLance 1.png

    Result When Using First Sprite From The Sheet:
    0_1520183397635_Screen Shot 2018-03-04 at 11.09.21 AM.png

    Desired Result:
    0_1520183465993_Screen Shot 2018-03-04 at 11.10.55 AM.png

    I have played around with the configuration suggested in this form post https://forum.vetasoft.store/topic/60/mecanim-sprite-sheet-animation-uv but I have had little success.



  • Does my sprite sheet need to be layed out uniformly like this one to be parsed correctly by the Sprite Sheet Frame UV component?0_1520183899038_1517736911680-977588b4-9dda-46d5-bfe6-3a4b2a4bccf7-image.png



  • Hi Oz,

    Yes, your sprite need to be parsed like the Ken sprite sheet and use the Sprite Sheet Frame UV

    It's a technical issue from Unity, we can't, by shader, interpreted the right UV position from a texture atlas.

    But, for the moment, until we found a solution, the best way to do it is to use the Sprite Sheet Frame UV

    Hope it's help
    Best Regards,
    Vetasoft


 

Looks like your connection to Vetasoft Assets was lost, please wait while we try to reconnect.