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. 

create widget returns none

Hello, on each character in a multiplayer game, there is a widget. When an event triggers, i want to create and add child widgets to this widget (created inside the widget) on the local character. The event triggers, but unless its on the listen server, the Create Widget node returns None

(inside the main widget) alt text

I also put a breakpoint in the c++ method for creating a widget, and this breakpoint never triggers alt text

  • I already tried RPC events, all of the types

  • I also tried to feed the "Owning Player" pin in the create widget node

Product Version: UE 4.20
Tags:
untitled.png (52.4 kB)
untitled.png (223.0 kB)
more ▼

asked Jan 23 '19 at 10:25 AM in Blueprint Scripting

avatar image

Kidakaka
17 1 5 7

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

1 answer: sort voted first

I had this problem before. From which class have you created your main widget? Make sure to create your widgets from a class that exists on the client and not just on the server.

Generally to avoid this issue I spawn all my widgets from the player HUD class, which only exists for each client and it does not exist on the listen server.

As a reference, the main classes of the engine exist on server/client based on what they are: - GameMode: exists only on the server - GameState, PlayerState, Pawns: exist on both server and clients - PlayerController: exist on the server and on the owning client only - HUD: exists only on the owning client

more ▼

answered Jan 23 '19 at 02:36 PM

avatar image

Bariudol
944 21 13 29

avatar image Kidakaka Jan 23 '19 at 02:57 PM

Thanks for your reply. The main widget is in a widget component as part of the blueprint. actually,the main widget contains more widgets inside that are shown fine...just when trying to create this one it fails.

(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