Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UProperty & Particle System Component

Hello, I was following a Programmer QuickStart tutorial from the Learn tab in the UE Launcher and i can across a bit of an issue and i was wondering if you can help;I completed the tut but the last section there is a do it you self where i have to add a particle system to an actor.

Add a Particle System Component to your FloatingActor. Some pre-built Particle Systems are already included in your project. Use Unreal Engine's UProperty macro to expose a variable for the magnitude of your FloatingActor's movement, instead of using a hardcoded value. You might want to check the Variables, Timers, and Events tutorial for help on this topic. Add periodic motion on the X and/or Y axis, and multiply the DeltaTime value by a number between 0.6 and 1.4, so your FloatingActor appears to float around freely. This can look great for powerups!

I'v been trying to do some research but im not getting the ans im looking for, was wondering if anyone here can point me in the right direction to go about adding the particle system to the actor with c++ code.

Thank You

Product Version: Not Selected
more ▼

asked Apr 30 '15 at 12:30 PM in C++ Programming

avatar image

15 4 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi x1time_HAVOC,

Attaching a particle system is similar any other property when it comes to UProperty. The syntax for adding a UProperty in C++ is as follows:

 class MYPROJECT10_API AMyActor : public AActor
     UParticleSystem* Fire;
     // Sets default values for this actor's properties

In the above code, I added a particle system component to MyActor and named it Fire. Another key thing is to add the EditAnywhere tag after UPROPERTY. This allows you to both see the component in the editor and change its value. For more information about UProperty and the rest of Unreal's reflection system, please go to the following link: https://www.unrealengine.com/blog/unreal-property-system-reflection

If you encounter any further issues, please follow up. I'll be happy to look into any other issues.

Have a nice day,

Matthew Clark

more ▼

answered Apr 30 '15 at 01:27 PM

avatar image x1time_HAVOC Apr 30 '15 at 01:55 PM

Thnaks for the reply :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question