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"

Spawning particle fx from UMG button?

Hallo!

So far, I am trying to get the screen location of a UMG button and then have a particle spawn in the same location, preferably behind the button!

I am rather stuck trying to figure out how to get the world space location to spawn the particle vfx behind the UMG button. How do I bring both worlds together?

I am unsure of which nodes to use to achieve this, but as you can see in the image below, this is as far as I have (embarrassingly) gotten:

alt text

Any guidance would be greatly appreciated! Thank you in advance!

Product Version: UE 4.16
Tags:
more ▼

asked Jul 21 '17 at 06:55 AM in Using UE4

avatar image

ohvalhi
1 2 3

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

1 answer: sort voted first

Check out the "Drag & Drop" section. There is a tutorial that explains how to move a health bar on the screen with the mouse, that should give you some idea about coordinate translations with regard to viewport. it is quite complex.

The other thing you may want to look into is raycast in order to hit an object with the mouse. I wager that might contain some Blueprint nodes you can use to determine the 3D world position from the mouse position.

Once you have a 3D position that is virtually behind your button, you should be able to start some particles from there.

I don't think that you can start particles "in the 2D realm of UMG". They are a 3D element and are part of the 3D world. You will run into problems if the camera moves while particles are flying.

more ▼

answered Jul 21 '17 at 07:06 AM

avatar image

Wallenstein
652 36 47 77

avatar image ohvalhi Jul 21 '17 at 07:08 AM

Thank you very much! I will try those things now!

Oh boy, oh boy!

(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