OnRep not called on Authority for C++ UPROPERTY which is set from Blueprint
In this question: OnRep Called on Authority in Blueprint But Not C++
It is explained that setting C++ UPROPERTY values in code does automatically call the OnRep function on the authority. This makes sense when the value is set from C++, as the user is always free to call the function themselves.
However, when the value is set from Blueprint, there is no way for the user to call the OnRep function. One would expect that the OnRep would automatically be called on both authority and clients in this case.
Is this behavior by design?
In this example OnRep_Foo is only called on clients when bFoo is set from Blueprint on authority. There is no way to call OnRep_Foo on authority.
asked Jan 25 '17 at 09:09 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here