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"

Error casting to HUD blueprint for variable

Hello all, I've been using casting nodes and have am learning about HUD blueprints which are fairly straightforward, however, I've been receiving a 'warning' and 'error' message which has me stumped. I have a 'widgetplay'(HUD) blueprint button setup to a variable to activate the "pass" of a "ball".

alt text

That variable is being called within the "ball" blueprint to enable physics.

alt text

The 'Object' of the cast to the Widgets_play(HUD) blueprint is always erroring and am also receiving a warning by the 'Cast to Widgets_play' function no matter what node I use. I've used 'get player controller', 'get owner', 'try to get pawn owner'(although that is just for animation it was worth a try), 'get pawn owner'. Nothing works on the Object node of the cast. I've used casting before without issue but since I am new to HUD development, some help would be appreciated.

Product Version: UE 4.19
Tags:
more ▼

asked Jul 12 '19 at 08:19 PM in Blueprint Scripting

avatar image

gamesmyth27
3 1 3 6

avatar image gamesmyth27 Jul 13 '19 at 01:57 AM

In a nutshell, what is the object for casting to a widget blueprint? It is not 'player controller' or as such. Returns error that that widgets_play blueprint does not inherit from player controller.

avatar image gamesmyth27 Jul 14 '19 at 01:04 AM

The widget executes the jump function without any need of casting to any blueprint. A custom function maybe......

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

0 answers: sort voted first
Be the first one to answer this question
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