Version 3.3.1.2

RectFormatter class

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

Constructors

RectFormatter()
public RectFormatter()

Methods

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

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

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

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.