Interface IPropertySerialization
Supports binary serialization and deserialization of component properties.
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public interface IPropertySerialization
Remarks
Implement this interface on components that need their configurable properties persisted or transferred in binary form, such as for distributed rendering snapshots.
Methods
DeserializeProperties(BinaryReader)
Reads and restores the component's serializable properties from the specified reader.
Declaration
void DeserializeProperties(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The binary reader to read property data from. |
SerializeProperties(BinaryWriter)
Writes the component's serializable properties to the specified writer.
Declaration
void SerializeProperties(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The binary writer to write property data to. |