This is the Unity version. See the matching Unreal Engine Niagara tutorial.
Back to the elemental comparison and recipes
What you will build
Build two separate parts: Splash throws droplets upward and lets them fall, while Ripple expands a ring along the floor slightly afterward. Both use Particle System, Unity’s component for emitting and moving small images or meshes. The droplets and ring are pictures on flat surfaces; these simple shapes produce the splash effect.
Preparation: make a small test scene
Use Unity 2022.3 LTS with URP 14 and save a separate practice Scene. A Scene is the workspace containing the floor, camera and effect. Hierarchy lists its objects; Inspector shows settings for the selected object. If you use another Unity version, including Unity 6, menu names and positions may differ.
- Right-click an empty area in Hierarchy, choose Create Empty and name it EF_WaterSplash. In Inspector, open the Transform menu and choose Reset to restore its position, rotation and scale. The examples treat one Unity unit as one meter and keep parent scale at (1,1,1).
Keep the practice scene and its assets together - Place a unit cube at (2,0.5,0) as a size reference, away from the effect origin. Add a floor cube at (0,-0.05,0), scale (4,0.1,4), with its top at Y=0.
Scale reference - Frame the origin from an elevated angle in Scene view. Select Main Camera and use GameObject → Align With View, then verify the floor/work area in Game view.
Match Main Camera to the Scene view - Inspect the Game view in Play mode against mid-gray, initially without bloom or strong grading. Keep a Directional Light for Lit materials, whose shading responds to lights. Bloom is the glow around bright areas; leave it off while checking shapes.
Enter Play and inspect shape and motion in Game view
Build Splash first, then Ripple. Check each part on its own before adding the next part.
Object relationships
EF_WaterSplash groups the whole effect. In the list below, each indented object is a child of the object above it. Start with the root and add the children in the order explained below.
EF_WaterSplash
Splash
Ripple
How to enter values and curves
A range such as 0.8–1.2 means each particle receives a value between 0.8 and 1.2. Open the menu beside the field, choose Random Between Two Constants and enter the minimum and maximum. Choose Constant for a single value. Lifetime is how many seconds a particle remains; Speed is its distance traveled per second in Unity units. Compare at normal playback speed, timeScale=1.
Size over Lifetime changes a particle’s size while it is alive. Enable the module and open its Curve. Add keys at the stated positions: horizontal zero means the particle has just appeared; one means its lifetime has ended. The vertical value multiplies Start Size. For a particle lasting 0.8 seconds, horizontal 0.25 is 0.2 seconds after it appears.
Color over Lifetime changes particle color and transparency over its lifetime. Click Gradient: lower keys set RGB color; upper keys set Alpha, the transparency value. Alpha 0 is invisible; 1 applies no transparency reduction. You can leave RGB white and still fade Alpha. Values here use 0–1. In a 0–255 picker, 1 becomes 255 and 0.5 becomes about 128.
Select each new Particle System and reset its Transform before entering the position and rotation from its table. In Main, turn Play On Awake on so it starts when you enter Play, and leave Prewarm off. Set Start Color to white with Alpha 1. Sections of settings are called modules. Emission controls particle counts; Burst emits a group at a specified time; Shape controls where particles start and their direction. Leave unspecified extra modules off for this first test.
1. Prepare a grayscale mask
Mask_Drop is a mask: white marks the visible shape, black marks hidden areas and gray creates partial transparency. Read R, the red component of this grayscale image, into the material’s opacity. The material adds color later. Finish the material setup below so the black area becomes transparent.
- In Photoshop create a 512×512 RGB, 8-bit image with a black background and a separate layer for the white shape.
RGB / 8 bit - Draw a roughly 240-pixel-tall, 90-pixel-wide white drop with a tapered tip and rounded base, away from the image edges.
Keep black margins - Soften the edge by about two to four pixels and inspect coverage in grayscale before adding any material color.
Keep black margins - Export Mask_Drop.png and drag it into Unity Project. Start with Default type, sRGB off, Bilinear filtering and Clamp wrapping; select the imported PNG, click Apply in Inspector, and check that the preview contains the white shape and black margin.
Connect image brightness to opacity: black disappears
512 is the image size used for this exercise. Keep the editable PSD. Compare a smaller resolution at the effect’s actual screen size before choosing the final size. Check PNG file size separately from memory used by the imported Unity texture.
2. Build the mask-and-color material
A Material holds appearance settings such as the image, color and transparency. Shader Graph builds the calculations by connecting nodes. Here the grayscale image supplies the shape and Tint supplies the color. Unlit displays that color without directional-light shading.
- Right-click in Project and choose Create → Shader Graph → URP → Unlit Shader Graph. Name it SG_WaterDrop and double-click to open it. Set Transparent surface, Alpha blending and Alpha Clipping off.
RGB / 8 bit - In the Blackboard, use + to add Texture2D MaskTex, Color Tint and Float Intensity and Opacity. Enable Exposed for each so it appears in the Material Inspector. MaskTex chooses the image, Tint chooses its color, Intensity multiplies brightness and Opacity multiplies transparency. Set the default Tint to white with alpha one and both floats to one; verify them on the material too.
Expose Texture2D MaskTex · Color Tint · Float - Right-click empty graph space to add nodes, the small calculation blocks. Connect MaskTex to the Texture input of Sample Texture 2D. Use Multiply nodes to multiply sample R, Vertex Color A and Opacity, then pass the result through Saturate into Fragment Alpha. Multiply performs multiplication; Saturate limits the result to 0–1. Feed Tint RGB × Vertex Color RGB × Intensity into Base Color.
Connect image brightness to opacity: black disappears - Create M_WaterDrop from the saved graph, assign its PNG to MaskTex and set Tint to pale cyan. Save the Material here. Assign it to the Splash Renderer after creating that object in the later steps. Renderer is the component that draws the object on screen.
Connect image brightness to opacity: black disappears
Vertex Color passes the particle or line color and Alpha into the material. Multiplying its A makes settings such as Color over Lifetime visibly fade the result. For Particle System, open Renderer and check that Custom Vertex Streams includes Color and supplies the expected UV coordinates, which choose where the image is sampled.
See the Shader Graph walkthrough and mask workflow for node and export details.
3. Assemble Splash
Select EF_WaterSplash in Hierarchy and choose GameObject → Effects → Particle System. Name it Splash. If it is not indented under EF_WaterSplash, drag Splash onto EF_WaterSplash. Keep Splash selected and enter the table values in Inspector. Tick a module to enable it, then open its heading to edit its fields.
| Setting | Value | Purpose / check |
|---|---|---|
| Transform / Position; Rotation | (0, 0.05, 0); (-90, 0, 0) deg | Emit upward just above the floor. |
| Main / Duration; Looping; Start Delay | 1 s; Off; 0 | A single splash. |
| Main / Start Lifetime; Start Speed | 0.6–0.9 s; 2–3 units/s | Launch and let gravity bend the path. |
| Main / Start Size; Gravity Modifier | 0.08–0.14; 1 | Gravity follows the project 3D physics settings. |
| Main / Simulation Space; Start Color | World; White | Do not drag emitted spray with the parent. |
| Emission / Rate over Time; Burst | 0; time 0, count 20 | Emit the specified count together. |
| Shape / Shape; Angle; Radius | Cone; 50 deg; 0.12 | Spread the spray upward. |
| Renderer / Mode; Length Scale; Speed Scale | Stretched Billboard; 2; 0 | Stretch along travel; start Camera Scale at zero too. |
| Renderer / Material | M_WaterDrop | Compare opacity around 0.5–0.8. |
4. Check the falling arcs
Show Splash on its own and enter Play. Droplets should move upward, turn at the top and fall. Keep Noise off while checking gravity. With gravity (0,-9.81,0), an upward speed of 2 reaches the top in about 0.20 seconds. Droplets emitted at an angle from the Cone have a smaller upward speed and may turn sooner.
Keep lifetime RGB white with alpha keys (0,0), (0.1,0.8), (0.7,0.6), (1,0). Use size keys (0,0.6), (0.3,1), (1,0.3) to reduce large-card popping.
This minimal setup has no floor collision. Fade near impact time; add collision separately only if bouncing/contact is required.
5. Add a ring mask and ripple
- Make another 512×512 black image with concentric 400- and 340-pixel circles: white outer disc and black inner disc. Soften about two pixels and export Mask_Ripple.png.
A ring with a black center - Duplicate the graph as SG_Ripple and set Render Face Both in Graph Settings. Save and create M_Ripple from it; assign the ring mask, cyan Tint and Opacity 0.6. Create Ripple, disable Shape and set speed/gravity to zero.
Shape OFF / Speed 0 / Gravity 0 - Use looping off, duration one, delay 0.1 s, lifetime 0.7 s and size one; set rate zero with a one-particle burst at time zero.
Delay Ripple by 0.1 s, then emit one particle - Use Mesh rendering with a unit XY quad. Keep Ripple Transform rotation (0,0,0), set Renderer Render Alignment to World and Main 3D Start Rotation to X=90 and Y/Z=0 degrees, placing it parallel to the floor, and assign M_Ripple.
Rotate UnitQuad parallel to the floor - Raise Y about 0.02 to avoid floor overlap. Grow lifetime size from 0.2 to 1.8 and fade alpha from 0.6 to zero; the ring should follow the splash.
Expand and fade just above the floor at Y=0.02
UnitQuad starts as a flat XY surface. Setting Main 3D Start Rotation X to 90 degrees places it parallel to the floor. If another quad disappears, set M_Ripple Render Face to Both to display both sides, then inspect the original mesh orientation.
Check units and the quad orientation
Start with particle caps 32 for Splash and four for Ripple. If a unit XY quad is unavailable, import the exercise UnitQuad.obj and assign its expanded Mesh. It is one unit per side before particle scaling.
Apex time uses the vertical velocity component divided by gravity. Floor arrival and lifetime are not necessarily equal; fade earlier or add collision if the floor crossing is visible.
Expand the FBX/OBJ in Project and select its Mesh for the particle Renderer. Mesh particles require Read/Write; Unity enables it on assignment, but inspect Model Import Settings if an import error occurs.
From the first playback to saving
Disable Ripple to inspect Splash arcs, then disable Splash. Ripple alone should expand parallel to the floor with an empty center.
Play with Splash alone to inspect the upward arc. Then enable Ripple and restart Play: a floor-parallel ring should begin after 0.1 s. Restart the one-shot test instead of turning looping on.
Inspector values tested in Play may reset when you stop. Write down the values you want to keep, exit Play and enter them again, then save the Scene. Drag the completed root object into Project to save a Prefab, a reusable file containing the whole effect.
Troubleshoot one cause at a time
| Symptom | First check | Comparison |
|---|---|---|
| Sideways spray | Cone orientation | Compare with splash rotation (-90,0,0) and a reset parent. |
| Upright ripple | Quad and particle rotation | Inspect the particle X rotation and assigned mesh. |
| Repeated splashes | Looping and continuous rate | Use looping off, rate zero and one burst row. |
Completion checks: compare under matching conditions
- Check that arcs and ring expansion read without hue.
Gravity - Isolate layers and verify the ripple delay.
Age = seconds / NormalizedAge = lifetime progress - Inspect ground overlap from above and at an angle.
Gravity - Compare opacity against white, black and gray and profile overlapping splashes.
Gravity
Continue by comparing another element
Return to the eight-element comparison to compare shape, motion and persistence. Another exercise is the ice recipe.