[Niagara] Get Actor Position Mini Tutorial

Hey everyone,

This is my first post here and here is a small tutorial on how to get the positioin of any object from your level into your niagara system using user parameter and scratchpad. and with that you can make something like this.

Step 1. Create a niagara system, with an emitter of your choice(i used a basic fountain here)
Step 2. Create an ‘Actor Component Interface’ user parameter.

Step 3. Create a scratch pad module in the emitter and wire it up something like this.

Step 4. plug the user parameter you created into the scratchpad’s Actor Component Interface input.

Step 5. Annnnnnd done!

you can now call this position data anywhere in the emitter, here i plugged it into a point attraction force to attract the particles to it (sort of like a homing missile).

I know this can be achieved using blueprints but this is just a little tip for anyone who want to test stuff in a pinch.

also keep in mind that this will get the position of the object’s pivot so the particles will fly to its pivot not its centre, ex:- when you use it on mannequin the particles fly to it’s feet.

sorry the images are blurry, hope this helps Get Actor Position posted by anonymous | blueprintUE | PasteBin For Unreal Engine

(edited to add the rest of the screengrabs and blueprintue link)

7 Likes

Any way you can make that graph image larger… I can’t actually see what the modules are

Also “I plugged it into a point attraction force”

How exactly did you do that?

hey, i just updated with the rest of the screen grabs and pasted a link to blueprintue for this module, hope this helps.

Thanks for this I’m going to try it out and see if I can get it to work, haven’t done much scratch pad stuff

Tried it out, works perfectly. Thanks man!

1 Like