Can't change "Target Entity" field of particle emitter

0

Hello, I am making a targeting system using trail particles however i failed to find a way to change "Target Entity" field from c++ code. Am I missing something or should I make my own method?

asked 5 years ago178 views
4 Answers
0
Accepted Answer

Ah, sorry, I was thinking you meant the UI particle emitter.

I'm not familiar with the in game particle system but it sounds like you might have to add a bus method to set that value.

answered 5 years ago
0

Hi @REDACTEDUSER

Could you clarify what you mean by "Target entity". I'm not aware of any such concept for the particle emitter.

If you want a particle trail to follow the position of something - it will automatically follow the UI element with the particle emitter on it. There is an example of particle trails in the UiFeatures level.

I hope that helps,

Rob

answered 5 years ago
0

Hello @REDACTEDUSER

REMOVEDUPLOAD

So far I have only found a way to set it from editor but want to dynamically set it to follow objects in the scene (Connect one object with another). Haven't checked out the trail feature in UiFeatures level, I will give it a try.

Edit: I checked out UiFeatures sample and it had a simple trail particle emitter with no target set.

answered 5 years ago
0

Thanks, i did just that.

answered 5 years ago

This post is closed: Adding new answers, comments, and votes is disabled.