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"

'Player HUD' does not inherit from 'HUD'

When I try to communicate to my PlayerHUD widget blueprint it gives me this error. It has become quite a pain trying to work around and I couldn't find anyone else with this issue online.

If I try to reparent the blueprint class for my custom 'PlayerHUD' it doesn't even have an option to change it to HUD. Where did I go wrong?

Here's the image of my issue.

Product Version: UE 4.17
Tags:
more ▼

asked Sep 12 '17 at 01:50 AM in Blueprint Scripting

avatar image

Vrisar
1 1 1

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

1 answer: sort voted first

That because HUD class is compliantly different UI system, it is classical HUD canvas from UE3. With UMG you need to store widgets you create in varable (the create widget node output created widget) in order to refrence it. you can do so in any class, like PlayerController, or you can even use HUD class (you would need to create one) if you like.

Note that best practice is for widget to grab data on it's own insted of talking to it to update. This will save up a lot of mess with casting and such. Slate/UMG has binding system which let you bind widget information directly to data it should display, by function or directly.

https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/PropertyBinding/

more ▼

answered Sep 12 '17 at 04:13 AM

avatar image

Shadowriver
37.8k 937 172 1123

(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