Add two separate methods to NetworkVariable
as supplements to Value
property
#3184
Labels
stat:awaiting triage
Status - Awaiting triage from the Netcode team.
type:feature
New feature, request or improvement
Is your feature request related to a problem? Please describe.
In the process of
NetworkVariable.Value = value
, two parts of operation happen, one is to set theValue
, then if new value is different than old value, setNetworkVariable
dirty so that remote value get updated and both local and remoteOnValueChanged
delegate gets called.But sometimes, we only want to perform one part of operation, e.g. (1) only set the
Value
without notify remote peer and without invokeOnValueChanged
, (2) just notify without touching theValue
.Describe the solution you'd like
add two methods :
Describe alternatives you've considered
currently as a sub optimal solution, i use this:
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: