x

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"

Particles and Emiters in C++

Hello there,

I'm posting my first question here due to I can't find any good information about particles and emitters.I'm pretty nooby at C++ please go easy on me.

I googled a lot, but all threads I've found are old and seem no to work at all.What I managed to understand until now is that i need to spawn emitters and attach them ? But how can I achieve it? I've read documentation but still it's not so clear for me :/

If there is any more information required, just let me know.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 03 '17 at 09:08 AM in C++ Programming

avatar image

Avengar
13 3 5 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

At location

 UParticleSystemComponent* UGameplayStatics::SpawnEmitterAtLocation(UObject* WorldContextObject, UParticleSystem* EmitterTemplate, FVector SpawnLocation, FRotator SpawnRotation, bool bAutoDestroy)

exemple: UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), YourParticleSystem, Location, Rotation);

Attach To Component

 UParticleSystemComponent* UGameplayStatics::SpawnEmitterAttached(UParticleSystem* EmitterTemplate, USceneComponent* AttachToComponent, FName AttachPointName, FVector Location, FRotator Rotation, EAttachLocation::Type LocationType, bool bAutoDestroy)


exemple: UGameplayStatics::SpawnEmitterAttached(YourParticleSystem, Component, NAME_None, Location, Rotation, EAttachLocation::SnapToTarget, false);

more ▼

answered Mar 03 '17 at 10:35 AM

avatar image

42EspoiR
283 11 8 20

(comments are locked)
10|2000 characters needed characters left
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