State Callbacks on network Objects

The callbacks I'm getting on my state Object comes in pieces.

If I create a Bolt Object in my state so the class is like so:

MyNetworkObject
{
string str1;
string str2;
}

And in code I change those values:
myState.netObj.str1 = "HEY 1"
myState.netObj.str2 = "HEY 2"

I'll get callbacks that the state changed 2 times, but the problem is only the string set that time will have a value, the other will be empty. So I can't tell if I sent what's above or only changed str1, or str2, it's a guessing game.

Hard to explain but the state callbacks sometime just fire off with some empty members in the state, and you don't know if they are empty on purpose or not.

Is there is way I can change those 2 values but only get a onchange callback one time for the network Object?

Comments