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"

Make my UIWidget (HUD text) move with camera shake?

hi guys,

im using a health bar widget, that is text and percentage (HULL %100) for my player pawn. Everytime there is a camera shake (scripted explosion, crashing into a mine, enemy blows up etc etc) the cockpit shakes, as I call my global camerashake scripts.

How can I make the widget text, move with the camera shake, ie the cockpit rattles around for a few seconds, but the text stays in the same spot naturally. How can i fix it, thank you.

Here is a screenshot, and one of my camera shake scripts (this script is for 1 of my floating mines) alt text

Product Version: UE 4.20
hud-widget.jpg (133.0 kB)
camera-shake.jpg (110.5 kB)
more ▼

asked Jan 20 '19 at 01:52 AM in Blueprint Scripting

avatar image

6 1 1

avatar image Rymbrant Jan 20 '19 at 03:46 AM

I'm actually a bit confused. Do you want the UI to shake with the world or are you trying to make it stay still while the world shakes?

avatar image mh2012425252 Jan 20 '19 at 03:47 AM

hi i want it to shake with the world, thank you.

avatar image mh2012425252 Jan 21 '19 at 12:06 AM

are you going to help, or just ask stupid questions?

avatar image Rymbrant Jan 21 '19 at 06:59 AM

wow... screenshoting this one. Thank you.

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

1 answer: sort voted first

This works properly for me, I am updating the widget position in viewport every tick. How are you setting the widget position?

more ▼

answered Jan 21 '19 at 06:47 AM

avatar image

66 1 3 6

(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