Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkBehaviour.OnSerialize

Switch to Manual
public function OnSerialize(writer: Networking.NetworkWriter, initialState: bool): bool;

Parameters

writer Writer to use to write to the stream.
initialState If this is being called to send initial state.

Returns

bool True if data was written.

Description

Virtual function to override to send custom serialization data.