Version 3.3.1.2

GradientFormatter class

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

Constructors

GradientFormatter()
public GradientFormatter()

Methods

GetUninitializedObject()
protected override Gradient GetUninitializedObject()
Returns
UnityEngine.Gradient

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

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

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

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.