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
TThe object to serialize or deserialize.
mode
ArchiveModeThe serialization mode.
stream
SerializationStreamThe stream to serialize or deserialize to.