com.onlineobject.objectnet Namespace

NetworkVariable<(Of <(<'T>)>)>..::..OnSynchonize Method

Sets the synchronization delegates for getting and setting the value of the network variable.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public void OnSynchonize(

	Func<T> onGet,

	Action<T> onSet

)

Parameters

onGet
Type: Func<(Of <(<'T>)>)>
The delegate to call when getting the value.
onSet
Type: Action<(Of <(<'T>)>)>
The delegate to call when setting the value.