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"

Displaying UMG widget on top of mesh

Simple question guys, how can I display a UMG widget on top of a static mesh instead of based on the screen?

For example I have a UMG widget that has an image of hand pointing at something, how can I make it so when I overlap it can display that image on the mesh?

Another concern would be that the icon would adjust to display properly from the player's view angle, so it would look correct from more than 1 position.

Any help would be very much appreciated.

Product Version: UE 4.21
more ▼

asked Feb 27 '19 at 08:22 AM in Blueprint Scripting

avatar image

3 1 1

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

1 answer: sort voted first

You can add a WidgetComponent in your Actor's BP (Add Component-> Search for "Widget" )

Then in the Details panel search for WidgetClass and assign your UMG here.

You can treat your WidgetComponent just like any SceneComponent. So in your case you can apply SetVisibility and SetWorldRotation to the WidgetComponent.

more ▼

answered Feb 27 '19 at 10:13 AM

avatar image

346 1 5 4

avatar image mgsmetallica Mar 03 '19 at 01:16 AM

Thank you, I understand how to implement it now at least though having some difficulties making the widget turn to the player's (first person view) angle, I'll try to figure it out.

avatar image Trueform 19 hours ago

A bit late so you've probably solved it by now, but for anyone with a similar problem you need to go to the widget component's user interface panel and set the space to screen. The widget will then always face your screen.

(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