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"

Stop UI rotating with Character

I'm currently trying to make a more dynamic UI that shows when the character is charging an attack, but when the character rotates the UI does too as it's in the Character blueprint. Is there a way to tell the UI to constantly face the same direction? Thanks in advanced

Product Version: UE 4.19
Tags:
capture1.png (34.2 kB)
capture2.png (41.6 kB)
more ▼

asked Jun 03 '18 at 05:23 PM in Blueprint Scripting

avatar image

RetrocalypseNow
3 1 2

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

1 answer: sort voted first

I'm assuming by UI you mean a Widget Component added to the Character blueprint. Components are parented to their containing Actor so they automatically follow their transformations such as location, rotation, etc.

To solve this problem in my current project, I made the widget a separate Actor, and either attach it by location only, or update its position every Tick (first way is more performant if you can get it to work).

There might be a way to set a component's attachment to its parent actor to be by location only, but I haven't explored enough to find out.

If the rotation is not parented to the Character though, you'll have to keep it facing the camera some other way, which may again involved per-tick updates to set the rotation to the LookAt from the widget to the player's Camera (unless you're making it a Screen Space widget, in which case it will always face the camera).

There are a lot of ways to approach this, and I have only tried one or two.

more ▼

answered Jun 06 '18 at 09:17 PM

avatar image

mightyenigma
3.8k 18 23 20

(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