Method SetUserData
SetUserData<T>(T)
Sets an arbitrary json value as userdata on this token.
This userdata is not read or handled by the game engine and not sent to clients.
This mechanism only exists as a convenience for the programmer to store data bound to a windows' lifecycle.
Will do nothing if the window does not exist.
public void SetUserData<T>(T userData)
Parameters
userDataTThe data to store.
Type Parameters
TThe type of data to store. Must be serializable to JSON.