Particle Texture Sheet Animation Module reference to Sprite Packer Atlas
Is there an easy way to connect the dots between the Texture Sheet Animation Module component of a Particle System, and an Atlas generated by Sprite Packer?
The missing link is how to create the material for the Particle System Renderer Module that references the Sprite Packer Atlas. Since I think the latter is a cached asset, I don't think it's possible to assign in the inspector.
If this were possible, it would be super easy to create randomizing particle effects from any sprites/textures already in your game without creating/saving/storing a 3rd asset to bridge the gap.
Answer by karl_jones · Mar 20, 2017 at 08:41 PM
Well we have support for Sprites in the Texture Sheet module in Unity 2017.1 but for now you could use https://docs.unity3d.com/ScriptReference/Sprites.SpriteUtility.GetSpriteTexture.html.
@karl_jones the link is broken (Yeah, I know that's an old post)... I'm trying to create a custom shader that benefits from sprite atlas and Particle system's Texture sheet animation module through a custom shader... however, it's not really rendering anything at all !!!
How could I create a custom shader (in my case using amplify or shadergraph) that renders the sprites on the sprite list ?
Answer by Livealot · Mar 20, 2017 at 09:37 PM
Thanks. Good to know the missing link won't be missing for long.