Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
ClosemsgType | Message type. |
This begins a new message, which should be completed with FinishMessage() once the payload has been written.
no example available in JavaScript
short myMsgType = 444;
NetworkWriter writer = new NetworkWriter(); writer.StartMessage(myMsgType ); writer.Write("test data"); writer.FinishMessage(); myClient.Send(writer, 0);