UE5 Niagara #ScratchPad Module #1 | Velocity Condition

Shield FX in UE5 Niagara Tutorial | Download Files
Velocity condition ScratchPad module tutorial in Unreal Engine 5 Niagara

Download – https://www.patreon.com/posts/67499640
Twitter – https://twitter.com/cghow_
UE5 Niagara Module | velocity Condition
Hi, this is the first video of this scratch pad module tutorial series. in this tutorial, we will learn how to use velocity conditions to change other parameters of particle behavior or look.

Velocity Condition ScratchPad in UE5 Niagara

This tutorial covers ScratchPad basics in Unreal Engine 5 Niagara by using a velocity condition to change particle color and size with outputs, and the project files are available to download.

Use it as the starting point for custom modules, and see the related posts below for more ScratchPad modules.

More ScratchPad modules: Collision Query · Particle Attribute Reader · Custom Facing

Master Scratch Pad Basics in Unreal Engine Niagara – Velocity Condition for Particle Effects


Description:

In this tutorial, Ashif Ali introduces the basics of Scratch Pad in Unreal Engine’s Niagara system. Learn how to use conditions in Scratch Pad to create dynamic particle behaviors, such as changing color or size based on velocity. This tutorial sets the foundation for a series exploring Scratch Pad’s potential for advanced particle effects.


Key Points Covered:

  • Introduction to Scratch Pad: Understanding its purpose and how it enhances particle behavior.
  • Setting Up a Condition: Use velocity to create behaviors (e.g., color changes when velocity is positive or negative).
  • Practical Example: Modify particles in Niagara Fountain based on their movement direction.
  • Efficient Workflow: Leveraging output attributes for reusable and cleaner Scratch Pad modules.

Step-by-Step Guide:

  1. Create a Scratch Pad Module:
    • Add a Scratch Pad Module under Particle Update.
    • Name it (e.g., “Velocity Condition”) and position it above modules that use its output.
  2. Define the Condition:
    • Use Get Velocity to access particle velocity.
    • Break the vector to isolate the Z-axis (vertical movement).
    • Add a condition: If Z < 0, it indicates falling; otherwise, rising.
  3. Apply Boolean Logic:
    • Right-click to set data types (e.g., float, boolean).
    • Use the If Module to define behaviors based on conditions.
  4. Modify Particle Properties:
    • Adjust Color: Use True for green and False for red.
    • Adjust Size: Larger size for rising particles, smaller for falling.
  5. Create Reusable Outputs:
    • Define outputs for conditions (e.g., 1 for true, 0 for false).
    • Use these outputs in multiple particle attributes like size, position, or material.
  6. Test and Refine:
    • Apply changes and observe the behavior of particles in real-time.
    • Ensure modules are properly linked for expected results.

Benefits of Using Outputs:

  • Simplifies complex behaviors by centralizing logic.
  • Enables reuse across multiple attributes like size, color, or material.
  • Improves readability and maintainability of Scratch Pad modules.

Thank you for watching! See you in the next video. Bye-bye, take care!

Frequently Asked Questions

What does the Velocity Condition ScratchPad module do in UE5 Niagara?

The Velocity Condition Scratch Pad module is placed under Particle Update and uses Get Velocity to read particle velocity. By breaking the vector to isolate the Z-axis and checking whether Z < 0 with an If Module, it distinguishes between rising and falling particles in a Niagara Fountain to drive properties like color (green for True, red for False) and size.

How do you create reusable outputs in a Niagara Scratch Pad module?

You can define output attributes for your condition—such as 1 for true and 0 for false—and position the Scratch Pad module above any modules that read those outputs. Centralizing the condition into outputs lets you reuse the same logic across multiple particle attributes, including size, color, position, and material.

Where can I download the project files for this ScratchPad tutorial?

The project files for this first video in the UE5 Niagara ScratchPad module series are available to download on Patreon. You can also explore the related ScratchPad tutorials linked above, including Collision Query, Particle Attribute Reader, and Custom Facing.


Discover more from CGHOW

Subscribe to get the latest posts sent to your email.

One response to “UE5 Niagara #ScratchPad Module #1 | Velocity Condition”

  1. […] Start learning Niagara: UE5 Niagara Beginner Course · GPU Particles · Velocity Condition ScratchPad […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.