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. Dismiss Notice

Particles Texture Sheet Animation and new Sprite Atlas

Discussion in '2D' started by CodeFighter, Jul 7, 2018.

  1. CodeFighter

    CodeFighter

    Joined:
    Dec 15, 2012
    Posts:
    63
    How can I use Particles Texture Sheet Animation with new Sprite Atlas?
    Since I switched to new Sprite Altas system I not able to use Texture sheet animation because it requires legacy Sprite Packer. Thanks!
    upload_2018-7-7_15-26-38.png

    upload_2018-7-7_15-27-18.png
     
    JankTho likes this.
  2. CodeFighter

    CodeFighter

    Joined:
    Dec 15, 2012
    Posts:
    63
    Problem solved. After I have started the game the error disappeared and particles are fine.
     
  3. joaobsneto

    joaobsneto

    Joined:
    Dec 10, 2009
    Posts:
    152
    Saved my life!! I almost bought TexturePacker. So simple to solve. Thanks!!!
     
    JankTho and CodeFighter like this.
  4. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    318
    I have strange problems regarding this. All my Particle Sprites are on the same Sprite Atlas but it keeps me showing this error.

    It should be a bug!

    I have the set the "packing tag" all to the same to make it works.

    But the "packing tag" should be obsolete when using Sprite Atlas, or I'm wrong?
     
  5. joaobsneto

    joaobsneto

    Joined:
    Dec 10, 2009
    Posts:
    152
    Is Sprite Atlas enabled in the editor? It must be, otherwise it will only work in the build. All the sprites must be on the same page of the SpriteAtlas. If your sheet is using multiple pages, you could increase the size of the texture, but you will loose compatibility to older devices. Remember to set your sprites to Rect, if you use Tight, they will overlap on the effect. If you use Sprite Atlas the packing tag is not used, only if you set your editor to use the Legacy Packer.
     
  6. Krohnos

    Krohnos

    Joined:
    Jan 24, 2016
    Posts:
    1
    Hi!

    I just tried this out. i set a sprite in the sprite sheet animation but it now showing, all the particles are purple like when the shader is missing. I'm using LWRP. Am I missing something or it does not work with LWRP? So basicly if there is no material in the renderer it will be purple.

    Edit: Figured it out, just add the default_particle material and you’re good to go.
     
    Last edited: May 4, 2019
    oriolmanya likes this.
  7. oriolmanya

    oriolmanya

    Joined:
    Jul 4, 2012
    Posts:
    50
    I had the same problem, @Krohnos. So sad it's so hard to figure it out. Thanks for giving the solution.
     
  8. DavidC02

    DavidC02

    Joined:
    Jul 19, 2011
    Posts:
    152
    Creating a sprite atlas with the folder from the textures helped me solve this issue.
     
  9. angelonit

    angelonit

    Joined:
    Mar 5, 2013
    Posts:
    40
    It took me a while to get that you have to:
    RightClick --> Create --> 2D --> Sprite Atlas