Skip to main content

TypeSerializationHelper.NetworkPrefabSerialization

A class in Root.Township, the global namespace.

Serializer for NetworkPrefab, sent as its prefab hash (0 for null).

Constructors​

MemberWhat it is
NetworkPrefabSerialization()Creates a TypeSerializationHelper.NetworkPrefabSerialization with default values.

Methods​

MemberWhat it is
protected override void Serialize(Type type, ref NetworkPrefab value, Stream stream, ChunkVersioning versioning)Writes the prefab's hash, or reads a hash and fetches the prefab from PrefabManager.