Table of Contents

Class ReferenceSerializer<T>

Namespace
Stride.Core.Serialization.Contents
Assembly
Stride.Core.Serialization.dll

Serialize object with its underlying Id and Location, and use ContentManager to generate a separate chunk.

public sealed class ReferenceSerializer<T> : DataSerializer<T> where T : class

Type Parameters

T
Inheritance
ReferenceSerializer<T>
Inherited Members

Methods

Serialize(ref T, ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref T obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj T

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.