Version 2.1.0.0

ColorBlockFormatter class

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

Constructors

ColorBlockFormatter()
public ColorBlockFormatter()

Methods

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

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

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

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.