This is the Unity version. See the matching Unreal Engine Niagara tutorial.
Back to the elemental comparison and recipes
What you will build
Make an ice spike grow from the ground, hold briefly, then shrink while small shards fall. Model the spike in Blender and animate its height in Unity. Shards is a separate Particle System that emits the small pieces. Keeping the main spike and shards separate lets you adjust their timing independently.
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_Ice. 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 the spike mesh, then SpikePivot’s height animation, then Shards. Check each part on its own before adding the next part.
Object relationships
EF_Ice 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_Ice
SpikePivot (Animator)
Visual (Mesh Renderer)
Shards (Particle System)
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. Model an ice spike with its base at the pivot
- In a fresh Blender 4.5 file add a Cone. In its creation panel set Vertices four, Radius 1 to 0.15, Radius 2 to zero and Depth one.
Grow from a fixed origin at the base - In Edit Mode select all vertices and move them +0.5 along Z. The base becomes local Z=0 and tip Z=1 while the object pivot stays at the base. Return to Object Mode and use flat shading.
Grow from a fixed origin at the base - Name it IceSpike, apply rotation/scale on an export copy, export only the selected mesh to FBX and import it into Unity.
Grow from a fixed origin at the base - In Unity verify the tip points +Y and compare its height with a unit cube. Correct orientation on the Visual child, leaving the following SpikePivot Y axis pointing upward.
Grow from a fixed origin at the base
See the Blender mesh workflow for export concepts. Rebuild the material in Unity rather than assuming Blender nodes transfer.
2. Apply a material that reveals the facets
- Create M_Ice using Universal Render Pipeline/Lit. Start with Opaque surface, pale cyan Base Color, Metallic zero and Smoothness 0.6.
Use surface lighting to inspect the mesh facets - Create SpikePivot under EF_Ice, place the imported spike beneath it as Visual, align its base with the parent origin and assign M_Ice.
Use surface lighting to inspect the mesh facets - Move the directional light and verify facet shading before adding transparency or normal maps.
Use surface lighting to inspect the mesh facets
Start with solid, pale-cyan ice. Check that the light and dark facets make the pointed shape clear. Try transparent ice after this shape and its animation work.
Select Visual in Hierarchy and assign M_Ice under Mesh Renderer → Materials in Inspector. Mesh Renderer draws the model. The next step hides the spike by reducing SpikePivot’s height, rather than changing this material’s opacity.
3. Animate growth, a hold and disappearance
- Select SpikePivot, open Window → Animation → Animation and create IceGrow.anim. Add Transform Scale as an animated property.
Grow from a fixed origin at the base - Keep X/Z scale at one and key only the following Y values. The base pivot makes it grow upward rather than expand equally around its center.
Grow from a fixed origin at the base - Turn recording off and disable Loop Time on the clip. Verify a fast extension, held pose and final shrink.
Grow from a fixed origin at the base
| Setting | Value | Purpose / check |
|---|---|---|
| Clip time | 0 s; Y=0.01 | Almost invisible start. |
| Clip time | 0.20 s; Y=1 | Reach full height quickly. |
| Clip time | 0.65 s; Y=1 | Hold the pointed silhouette. |
| Clip time | 0.85 s; Y=0.01 | Shrink height to remove the spike. |
Initially select the Scale Y keys in Animation Curves and set Both Tangents to Linear from the context menu for constant segment speeds. Later tangent changes alter easing. Preserve the held interval rather than turning the entire motion into a continuous wobble.
The graph shows SpikePivot local scale, assuming parent scale one and a unit-height mesh. Correct Visual orientation while keeping the animation on SpikePivot.
4. Emit small shards at breakup time
Select EF_Ice and create a Particle System named Shards. Place it beside SpikePivot in Hierarchy, not inside it, so shrinking the spike does not shrink the falling pieces. In Shards Renderer, choose Mesh rendering and assign the Mesh inside the imported IceSpike asset.
| Setting | Value | Purpose / check |
|---|---|---|
| Main / Looping; Start Delay | Off; 0.65 s | Start after the held pose. |
| Main / Lifetime; Speed; Size | 0.6 s; 1–1.6; 0.08–0.15 | Small short-lived shards. |
| Main / Gravity Modifier; Simulation Space | 1; World | Let fragments fall. |
| Emission / Rate; Burst | 0; time 0, count 10 | A single fragment burst. |
| Shape / Shape; Radius | Sphere; 0.15 | Scatter near the spike top. |
| Transform / Position | (0, 0.7, 0) | Position relative to EF_Ice. |
Use a URP Particles/Lit material, initially opaque with white particle color and cyan base color. This emits separate geometry rather than physically fracturing the source spike.
Entering animation keys as frames
At a clip sample rate of 60 fps, times 0, 0.20, 0.65 and 0.85 seconds are frames 0, 12, 39 and 51. In seconds:frames notation, 0:12 means twelve frames, not twelve seconds. Check the actual clip rate first.
Creating the first clip through Animation Window adds an Animator/controller with that clip as the default state. Verify assignment on SpikePivot. Start the shard particle cap at sixteen.
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.
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 Shards and play IceGrow alone. The base should stay fixed while height grows by 0.20 seconds, holds through 0.65 seconds and then shrinks.
Disable Shards and enter Play to check that only spike height changes while its base stays fixed. Re-enable Shards and restart for the 0.65-second breakup. Compare both systems from the same initial state.
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 |
|---|---|---|
| Growth expands both ways | Mesh pivot | Check the Edit Mode offset and spike base alignment. |
| Shards shrink too | Hierarchy | Make Shards a direct child of EF_Ice. |
| No second playback | Animator and particle playback | Restart Play to verify the initial sequence; design runtime reset separately. |
Completion checks: compare under matching conditions
- Inspect front/angled views for a stationary base and upward tip.
Grow from a fixed origin at the base - Verify the held pose from 0.20 to 0.65 seconds and shard onset at 0.65 s.
Grow from a fixed origin at the base - Compare in gray: preserve angular stillness rather than flame-like motion.
Grow from a fixed origin at the base - Recheck that clip and particle looping are both disabled.
Grow from a fixed origin at the base
Continue by comparing another element
Return to the eight-element comparison to compare shape, motion and persistence. Another exercise is the lightning recipe.