Version 2.1.0.0

LayerMaskFormatter class

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

Constructors

LayerMaskFormatter()
public LayerMaskFormatter()

Methods

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

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

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

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.