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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Casting to Hud

So if I cast to a Hud blueprint I made, where do I specify the object? Like how do I find that hud?

Product Version: UE 4.20
Tags:
more ▼

asked Oct 13 '18 at 06:48 PM in Blueprint Scripting

avatar image

Zatana1
7 1 2 4

avatar image Steve SybrSyn Oct 13 '18 at 07:00 PM

When you cast to your hud it will give you an output pin that is a reference to your hud. You can promote that pin to a variable to be saved and used for later. It will be located under variables section.

alt text

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

1 answer: sort voted first

You define your HUD class on the GameMode or GameModeBase. You can get the HUD from the PlayerController.

more ▼

answered Oct 14 '18 at 12:42 AM

avatar image

GarnerP57
816 3 4 8

avatar image Zatana1 Oct 14 '18 at 08:17 AM

alt text I'm looking for what to put in under the input pin for object, I can't find the Hub I have created.

question2.png (425.1 kB)
avatar image GarnerP57 Oct 14 '18 at 09:51 AM

Make a GetPlayerController and from that GetHUD. To get the specific type you created it has to be defined in Project Settings->Maps and Modes->DefaultModes expand "Selected GameMode" and there you have "HUD class".

(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