Version 3.3.0.1

ColorFormatter class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class ColorFormatter : MinimalBaseFormatter<Color>, IFormatter<Color>, IFormatter
Custom formatter for the UnityEngine.Color type.
Inheritance

Constructors

ColorFormatter()
public ColorFormatter()

Methods

Read(ref Color, IDataReader)
Reads into the specified value using the specified reader.
protected override void Read(ref Color value, IDataReader reader)
Parameters
UnityEngine.Color value

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

Write(ref Color, IDataWriter)
Writes from the specified value using the specified writer.
protected override void Write(ref Color value, IDataWriter writer)
Parameters
UnityEngine.Color value

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.