Add VFX to your game

Tutorial

foundational

+10XP

60 mins

17

Unity Technologies

Add VFX to your game

You've learned how to implement VFX in 3D and 2D projects. In this tutorial, you'll apply those skills to add VFX to your game.

1. Overview

In this tutorial, you’ll add particle effects to your game, whether you’re working in 2D, 3D, or decided to try both. By the end, your project will have fully functional VFX, just like the example projects shown below.

3D game

If you’re doing the 3D game, you'll create visual effects to simulate an explosion when the enemy catches the player and a pickup effect for the tokens.

By the end, your game could look something like this:

2D game

For the 2D game, you'll customize the particles to your chosen theme.

By the end, your game could look something like this:

2. Requirements

Your game design document (GDD) is still evolving, so take a moment to open it and review your plans.

Your visual style will shape the entire look and feel of your effects. A horror game might use smoky, gritty particles, while a bright, whimsical game might rely on sparkles and soft glows.

Now, think about your theme and the kinds of particle effects that make sense for your project, whether you’re building it in 2D, 3D, or both.

Ask yourself the following questions:

  • What visual effects reinforce your game’s atmosphere? Dust, sparks, fog, trails, magical bursts?
  • Should certain events (pickups, hits, damage, game over) have distinctive particle effects to give clear feedback?
  • Should characters or enemies have unique effects that help players identify their actions or states?
  • How intense should each effect be? Subtle and restrained, or bold and attention-grabbing?
  • When should effects play continuously, and when should they trigger only during specific actions?
  • Are there moments where not using VFX makes the impact stronger?
  • Should effects vary based on speed, power, or distance from the player?

3. Review your design document

3D game

Take some time to review the assets provided in the UCU Game Developer package that you downloaded and imported earlier.

If you haven’t downloaded and imported those assets, you can do that now.

In the asset pack, you can browse the Prefabs > VFX folder, which contains a few sample particle systems to get you started. Drag these into your scene to preview them.

2D game

Take some time to find sprites you can use in your own 2D game that align with your selected theme. Below are a few links to sites that contain both free and commercial 2D assets:

4. More things to try

  • If you want to develop your skills further, explore new concepts, or improve your project, check out some of the optional activities below. Each activity is identified as being either Easy, Medium, or Difficult, so you know what level of difficulty to expect.

These activities are entirely optional, so if you’re not interested, no problem – just skip this step. We do recommend attempting at least one of them in order to get the most out of this learning experience. Good luck!

Easy: Win celebration

To enhance the gaming experience when the player wins, incorporate a jubilant celebration effect triggered by the existing win activation function in the PlayerController script.

Medium: Add trailing smoke or dust behind the player as it moves

You can enhance the sense of speed of the Player GameObject by adding trailing particles behind it. Ensure that the effect only activates when the Player GameObject is in motion, which will provide a realistic touch. Keep in mind the effect should dynamically adjust based on the direction of the ball's movement, for a more natural and polished outcome.

5. Next steps

In this tutorial, you created visual effects to add to the visual impact of the game and create a more immersive experience. In the next tutorial, you'll learn how to add user interface elements to the game.

Complete this Tutorial