Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4 Game Development Essentials

You're reading from   Unreal Engine 4 Game Development Essentials Master the basics of Unreal Engine 4 to build stunning video games

Arrow left icon
Product type Paperback
Published in Feb 2016
Publisher
ISBN-13 9781784391966
Length 266 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Satheesh P.V Satheesh P.V
Author Profile Icon Satheesh P.V
Satheesh P.V
Satheesh PV Satheesh PV
Author Profile Icon Satheesh PV
Satheesh PV
Arrow right icon
View More author details
Toc

Playing particle in Blueprints


Now that our particle effect is ready, let's play it using Blueprints:

  1. Right-click on Content Browser.

  2. Select the Blueprint class.

  3. From the resulting window, select Actor.

  4. Double-click on the Blueprint to open the editor.

  5. Select your bursting particles in Content Browser.

  6. Open the Blueprint editor and add a new Particle System Component (if you select the particle in Content Browser, it will automatically set that particle as the template for the Particle System Component).

  7. Go to the Event Graph tab.

  8. Right-click anywhere on the graph and select Add Custom Event… from the Add Event category.

  9. Rename that Custom Event with any name you like. For this example, I renamed it ActivateParticle.

  10. Create a graph like this:

This Blueprint will first execute ActivateParticle when the game begins and when the event is executed, it randomly selects a time (in seconds) between 0.2 and 2. When the time runs out, it activates the particle and calls this event again.

Now, if you drag and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime