Version 3.3.1.2

Vector2Formatter class

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

Constructors

Vector2Formatter()
public Vector2Formatter()

Methods

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

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

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

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.