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"

Why is variable not getting replicated?

Hi there,

So there are three PlayerControllerBP instances is exist, One is ListenClient, One is just a Client and one is replicated copy of a Client PlayerControllerBP at Listen Client, thats how i understand it. Im creating widget for each of them and save It to a variable, so i can get access to it from any other BP on a server.

Here how im creating Widget

A) alt text B) alt text And here how it can easy test replication.

alt text

My problem is, 3rd Replicated copy of PlayerControllerBP doesn't have Widget variable updated when i create widget as on A screenshot, even if variable set to be replicated. And either of them, local and on server doesnt setup if i make it as B shows. Workaround is to create Custom Local event to handle every single action, but i don't like that idea at all. Can someone help me?

Product Version: UE 4.8
more ▼

asked Aug 16 '15 at 12:23 AM in Blueprint Scripting

avatar image

1.2k 57 21 56

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

2 answers: sort voted first

Widgets are not replicated. Simply draw the data that drives the widget from replicated variables and you should be fine.

more ▼

answered Aug 17 '15 at 02:17 AM

avatar image

611 21 8 35

avatar image CriErr Aug 17 '15 at 03:26 AM

When i was testing that, my main project wasn't completely networked and calling custom event on owning client from another blueprint just doesnt return a widget. So, i made huge and ugly workaround which is actually worked, Than i read your post and decided to try it again, which is was literally changing one link in one custom function and it worked. Now i can sleep.

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

For the custom event, create an input pin, and link the variable to that, then when you call the event on the server, drag the output pin to the correct place. This will pass the variable from client to server.

As far as i can remember the server cant read the local variables within events just by being replicated.

more ▼

answered Aug 16 '15 at 02:43 AM

avatar image

986 34 3 41

avatar image CriErr Aug 16 '15 at 10:33 AM

As on Sceenshot B ?

I made this

alt text

at its doesnt seems to work with my test setup which you can see on third screenshot

(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