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"

GUI Widget / HUD not showing up in view port?

I'm currently trying to learn how to add a HUD to my characters viewport but for some reason, the widget doesn't show up when I play. I've looked up similar problems but most of them have to do with adding the GUI to the game mode which I have already done. I've uploaded images relative to the subject here including game mode settings, widget layout, and the HUD nodes:

alt text alt text alt text

If you have any ideas let me know.

Product Version: UE 4.12
Tags:
capture.png (13.3 kB)
capture2.png (111.8 kB)
capture4.png (145.9 kB)
more ▼

asked Jan 14 '17 at 04:07 PM in Blueprint Scripting

avatar image

Skiddswarmik
6 1 1 2

(comments are locked)
10|2000 characters needed characters left

5 answers: sort voted first

In case you haven't found a solution yet, or if someone else is in need: If you can get your widget to show at all in the viewport try calling it from the level blueprint instead of the HUD Blueprint like so: alt text

I know it's not really optimal, but it works for testing, and when you launch or package the game it works from the HUD blueprint anyways.

Hope this helps!

more ▼

answered Mar 24 '17 at 04:27 PM

avatar image

Rasmus Hauschild
23 3 7 9

avatar image OMGTKB Sep 18 '18 at 01:03 AM

For those wondering like I was, "Main Widget HUD" is just the name of @RasmusHauschild's widget. When creating the node, look for "Create Widget".

(comments are locked)
10|2000 characters needed characters left

You create your Widget inside of the GameModeBP if I can see this correctly ? Sorry, i tried zooming into the screenshots, but I can't see it properly ^^ Have you tried creating the widget inside your actual PlayerCharacterBP? That's where i would put it.

Just try to copy and paste the whole create widget nodes into your PlayerCharacter. See if that works.

Hope that helps :)

more ▼

answered Jan 15 '17 at 12:35 AM

avatar image

snair_
32 5 5 6

(comments are locked)
10|2000 characters needed characters left

I don't know if you have solved your issue yet, however, I discovered a similar problem when I attempted to complete the HUD portion of the first person shooter tutorial in the UE4 documentation. The crosshair that I added to the game, following the instructions, would not show up when I tested the game in PIE (Play in Editor) mode. I decided to run it in standalone game mode per someone's suggestion and it finally showed up. I'm still not sure why it does not show up in PIE mode.

more ▼

answered Jan 15 '17 at 12:17 AM

avatar image

Dustyamp
1

(comments are locked)
10|2000 characters needed characters left

the same with me, I am creating the widget in the character but no value is returning or add to the viewport and whats worse is mine is crashing on it, I got a feeling its a bug

more ▼

answered Jan 21 '17 at 01:06 AM

avatar image

Artboom91
1 3 5 6

(comments are locked)
10|2000 characters needed characters left

Hi guys, i had the same issue and i found out that selected Viewport don't run the Game Mode Preferences so it never goes to our HUD and never creates our Widget. This don't happen on Standalone because Standalone reads the Game Mode in Initialization.

If you want to test on default viewport to get it faster you may do it like this:

On your playerBP -> Event Begin Play -> Client Set HUD

and make it Target:GetPlayerController

and New HUDClass: GameHUD ThirdPersonCharacter

This will force your character controller to run your HUD

See ya

more ▼

answered May 28 '17 at 07:13 PM

avatar image

Joel_pro2
6 1

(comments are locked)
10|2000 characters needed characters left
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