---
title: "Random start frame for Unity flipbook particles"
description: "Randomize the start frame of flipbook particles in Unity: set Start Frame to Random Between Two Constants, 0 to 63, so copies of one loop play out of step."
canonical: https://appliedmanifold.com/guides/unity-random-start-frame/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Random start frame

GUIDE // UNITY

# How to randomize the start frame of flipbook particles in Unity

In the Texture Sheet Animation module, open the menu next to Start Frame, choose Random Between Two Constants and enter 0 and the last frame, such as 63 for an 8 x 8 sheet. Each particle then starts at its own point in the animation, so your copies of one looping flipbook stop moving in sync.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   Godot 4 Available
-   **Unity** Manual setup
-   Unreal Engine Manual setup
-   Roblox Studio Manual setup
-   three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**SMOKE\_PLUMEFINAL**

![First frame of the smoke\_plume bake](/bakes/smoke_plume/poster.webp)

Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_plume)

01 // HOW TO

## Scatter six smoke plumes over a ruined town

1.  Create one Particle System with your smoke material. In Shape, choose Box and size it to the area the plumes should cover.
2.  In the main module, turn on Looping, set Duration and Start Lifetime to 20 and Start Speed to 0. In Emission, add one Burst at Time 0 with Count 6.
3.  In Texture Sheet Animation, set Tiles to 8 and 8, Time Mode to Lifetime and Cycles to 5, which plays the 4 s plume five times in 20 s.
4.  Click the small arrow beside Start Frame, choose Random Between Two Constants, and enter 0 and 63.
5.  Set Start Size to Random Between Two Constants as well, so the plumes differ in height. Leave Start Rotation at 0, because a side-on plume that tilts stops looking like it rises.

Each plume plays the same loop from a different frame. A looping sheet has no special first frame, so starting at frame 40 looks as natural as starting at frame 0.

02 // REAL OUTPUT

## Random start frames on fire

Several copies of the 2 s fire on random frames read as one wide blaze instead of a row of identical flames.

**FIREFINAL**

![First frame of the fire bake](/bakes/fire/poster.webp)

Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire)

03 // WHEN NOT TO

## Keep one-shots on frame 0

Random start frames only make sense for loops. An explosion that starts on frame 30 skips its flash. For varied explosions, ask your agent for the same effect with a new seed, which gives a new instance of the same explosion, and pick a sheet at random when you spawn it.

04 // RELATED

## Related pages

-   [Random start frame Godot 4Use Animation Offset and Particles Anim Loop in Godot 4 so each particle starts its flipbook on a different frame.](https://appliedmanifold.com/guides/godot-random-flipbook-start-frame/)
-   [Random start frame three.jsPlay one looping sprite sheet on many three.js sprites out of step with a random frame offset per sprite.](https://appliedmanifold.com/guides/threejs-random-start-frame/)
-   [Loop a flipbook in Unity UnityKeep a fire or smoke flipbook looping in a Unity Particle System by matching particle lifetime to whole cycles of the clip.](https://appliedmanifold.com/guides/unity-loop-flipbook/)
-   [Unity smoke plume UnityA smoke plume that leans with the wind and loops every 4 seconds, played in Unity by hand today.](https://appliedmanifold.com/effects/unity-smoke-plume/)
-   [Unity VFX UnityFire, smoke, explosion and dust effects in Unity: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/unity-vfx/)
-   [Particle systemA particle system spawns and updates many small sprites or meshes from an emitter to make sparks, smoke, rain and fire.](https://appliedmanifold.com/learn/particle-system/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in Guides →](https://appliedmanifold.com/guides/)

[← Play an explosion once](https://appliedmanifold.com/guides/unity-play-explosion-once/)[Fire glow in Unity →](https://appliedmanifold.com/guides/unity-fire-glow/)

05 // FAQ

## Unity random start frame questions

[All questions →](https://appliedmanifold.com/faq/)

**README.UNITY\_RANDOM\_START\_FRAME**

### How do I randomize the starting frame of Unity particles using the same flipbook?

Set Start Frame to Random Between Two Constants from 0 to the last frame. Each particle then starts the same looping flipbook at a different point.

### Can one Unity particle system use several effects from one atlas?

Yes. Put each effect on its own row, set Animation to Single Row and set Row Mode to Random so each particle picks one row to play.

### How do I make smoke particles in Unity with a flipbook?

Put your smoke sheet on a transparent particle material, enable Texture Sheet Animation with the grid size and randomize Start Frame so puffs do not move in sync.

### Which smoke texture should Unity particles use?

Use one RGBA sheet with gray shading in RGB and opacity in alpha, so Start Color can tint each particle cleanly in both lighter and darker directions.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
