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. 

Add to Player Screen not working as I expected


I am attempting to set up split screen for my game for testing purposes. I am trying to get 3 different in game HUD's to display. I am using Add to Player Screen as it was recommended for split screen. My blueprint looks correct to me, but the HUD's are still displaying the same way as when I used add to view port. Instead of HUD being in each persons smaller viewport it is displaying as if the whole screen is each persons view port. I have attached some images showing you what it looks like in game and the blueprint I am using. Thank you for any help. (Edit: I do not know why images are not displaying in the post. Let me know if you cannot access the images.) ![alt text][1]

The bar I circled is supposed to be near the bottom left. As well as the bars not being scaled down. Am I musunderstanding how Add to Player Screen works? Let me know if you need more information. [1]: /storage/temp/124503-capture2.png

Product Version: UE 4.13
capture.png (70.8 kB)
capture2.png (403.9 kB)
more ▼

asked Feb 01 '17 at 06:35 PM in Blueprint Scripting

avatar image

18 1 2 7

avatar image MartinL_Lucid May 09 '17 at 11:17 AM

I'm getting the same problem with 4.15.1. One idea I had was to use the 'Add To Screen' call from UUserWidget (https://docs.unrealengine.com/latest/INT/API/Runtime/UMG/Blueprint/UUserWidget/AddToScreen/index.html) but this doesn't seem to be exposed to BP. I'm planning on moving this over to C++ so I will see if it's an engine problem or just a BP issue.

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

1 answer: sort voted first

If you are trying to create the widget inside the Player Controller 'BeginPlay' event as the live training did you will see an error on the console... 'CreateWidget cannot be used on Player Controller with no attached player'. This is why the HUD isn't appearing for the extra players.

What I did was to add some logic to the Player Controller which checked if the HUD variable is valid, and if not, create the widget before it calls 'Spawn Character' on the game mode. You also need to un-hook the widget creation from the BeginPlay event.

alt text

blueprintfix.png (248.8 kB)
more ▼

answered May 09 '17 at 11:33 AM

avatar image

26 3 4

avatar image StarKiller4011 Jun 16 '18 at 03:47 AM

Thank you for this. As much as I love UE4, Epic's documentation is absolute garbage and their live training videos are often out of date with infuriating little errors like these

(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