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"

why is my cast to failing ?

This is not working, I dont know why, I have tried many different objects, maybe I have not discovered the secret combination:

alt text

I have also tried just using myhud variable which does work but doesn't receive on the other end lol.

Product Version: UE 4.8
more ▼

asked Jul 08 '15 at 06:44 PM in Blueprint Scripting

avatar image

255 37 36 51

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

1 answer: sort voted first

Hi Danny,

You're really close. You need to drag from the Get Player Controller -> Get HUD, then cast from that Get HUD node to the HUD you've added to it. If the HUD was not added to the controller via the Game Mode or other means first, the cast will still fail.

Let me know if that help!

more ▼

answered Jul 08 '15 at 08:01 PM

avatar image Dannyk90 Jul 09 '15 at 04:39 PM

Sorry it's not working:

alt text

avatar image Dannyk90 Jul 09 '15 at 05:25 PM

cast is still failing

alt text

avatar image Alexander Paschall ♦♦ EPIC Jul 09 '15 at 07:32 PM

In that case it would mean that the myHUD bp is not the class being used by controller. This documentation page can help explain what is happening a lot better: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/CastNodes/index.html

avatar image Dannyk90 Jul 10 '15 at 03:54 PM

ah yes you are correct, we have to cast to the place where we created the widget! :)

(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