Skip to main content

IOExtensions.ReadVector2Nullable

Declaration#

public static Nullable<Vector2> ReadVector2Nullable(Stream fs)

Parameters#

NameDescription
fsStream to use

Description#

Read a nullable vector2 from a stream

Usage#

Example
using NullSave.GDTK;using System.IO;using UnityEngine;
public class ExampleObject : MonoBehaviour{
    private void Start()    {            MemoryStream ms = new MemoryStream();            ms.WriteVector2Nullable(new Vector2(-42, 42));
            ms.Seek(0, SeekOrigin.Begin);            Debug.Log("Result: " + ms.ReadVector2Nullable());    }
}