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"

Hud Lag With UMG?

I am working on my HUD with UMG and I want to create a delayed look to the HUD, similar to this: https://youtu.be/4GNaPtLxNjs?t=55s I am aware I could use 3D widgets, but I would lose the resolution scaling and all that, is there a way to do a parallax sort of delay with UMG?

Product Version: UE 4.21
Tags:
more ▼

asked Feb 24 '19 at 07:11 PM in Blueprint Scripting

avatar image

EpochWon
3 1 1

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

1 answer: sort voted first

You can do parallax-ish things with UMG. Perhaps just moving it to the sides and / or shearing it a bit would do the trick. To make it laggy, interpolate the 2d vectors responsible for the screen position of the widget.

  • try having a 2d dummy (or just a 2d coordinate) in the middle of the screen and move it in the direction opposite to the player turn direction (so looking up would add to Y screen position) - mouse delta could be good for this

  • have that dummy try to get back to the screen centre during tick

  • have the UI widget try to catch up with that dummy coordinate using Vector 2d Interp To

This should give you quite a bit control over how the whole thing behaves. Untested but it may just look convincing enough.

more ▼

answered Feb 24 '19 at 09:27 PM

avatar image

Everynone
12.6k 72 24 53

avatar image EpochWon Feb 24 '19 at 09:28 PM

Thanks for the tip, I'll try it out and let you know.

(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