You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The default behavior of updating NetworkVariable was that the new value should be different than old value, but sometimes we want the OnValueChanged to be invoked no matter it's same or not. And in another case, we want to set NetworkVariable value without invoking OnValueChanged.
Describe the solution you would like:
Add a member function:
publicvoidSetValue<T>(Tvalue,boolnotify)
notify==true means no matter whether new value equals old value, we always invoke OnValueChanged. notify==false means no matter whether new value equals old value, we don't invoke OnValueChanged.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The default behavior of updating
NetworkVariable
was that the new value should be different than old value, but sometimes we want theOnValueChanged
to be invoked no matter it's same or not. And in another case, we want to setNetworkVariable
value without invokingOnValueChanged
.Describe the solution you would like:
Add a member function:
notify==true
means no matter whether new value equals old value, we always invokeOnValueChanged
.notify==false
means no matter whether new value equals old value, we don't invokeOnValueChanged
.The text was updated successfully, but these errors were encountered: