Why is variable not getting replicated?
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) B) And here how it can easy test replication.
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?
asked Aug 16 '15 at 12:23 AM in Blueprint Scripting
Widgets are not replicated. Simply draw the data that drives the widget from replicated variables and you should be fine.
answered Aug 17 '15 at 02:17 AM
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.
answered Aug 16 '15 at 02:43 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here