# Way to have a random SubUV Sequence in particle?

**URL:** <https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105>\
**Category:** Character & Animation\
**Tags:** subuv, random, sprite, unreal-engine, question\
**Created:** [September 23, 2021, 8:21am UTC](https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105 "2021-09-23T08:21:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarksunG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarksunG](https://forums.unrealengine.com/u/DarksunG)\
**Post date:** [September 23, 2021, 8:21am UTC](https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105/1 "2021-09-23T08:21:24Z")

</div>

I have a particle that plays a SubUV sequence from a material sprite sheet. The sheet itself has 4 different sequences in a row on it. I need the particle to play 6 frame in a row starting from either frame 1, 7, 13 or 19. How do I do that?

If I can’t is there a another way for a particle to randomly play 1 of 4 animations?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 23, 2021, 9:37am UTC](https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105/2 "2021-09-23T09:37:32Z")

</div>

If you’re using Niagara, you can setup the particle like normal, and talk to it and the material with blueprint at runtime. That means you can have a material instance for the sprite and change sub UV parameters.

You can either set the parameters on each blueprint instance, or change them at runtime.

---

<div class="post-metadata">

**Author:** ![DarksunG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarksunG](https://forums.unrealengine.com/u/DarksunG)\
**Post date:** [September 23, 2021, 4:58pm UTC](https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105/3 "2021-09-23T16:58:00Z")

</div>

Doh! Unfortunately not using Niagara =(

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 23, 2021, 6:45pm UTC](https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105/4 "2021-09-23T18:45:55Z")

</div>

You might be able to do it with material parameter collections:

> **[Material Parameter Collections are a super useful new feature in Unreal...](https://www.unrealengine.com/en-US/blog/material-parameter-collections)**
>
> Material Parameter Collections are a super useful new feature in Unreal Engine 4. They are a collection of Scalar and Vector Parameters that can be referenced from any number of other materials or Blueprints. This means they change globally, so if...

Also, it might be worth taking the step to Niagara. It will convert your particle system for you ( unless it’s complex ), and Cascade is getting phased out.

---

<div class="post-metadata">

**Author:** ![DarksunG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarksunG](https://forums.unrealengine.com/u/DarksunG)\
**Post date:** [September 24, 2021, 2:06am UTC](https://forums.unrealengine.com/t/way-to-have-a-random-subuv-sequence-in-particle/489105/5 "2021-09-24T02:06:21Z")

</div>

yeahhh… you’re probably right I should switch to Niagra. I’ll look into it a bit more.
