Skip to main content

IOExtensions.ReadVector3Nullable

Declaration#

public static Nullable<Vector3> ReadVector3Nullable(Stream fs)

Parameters#

NameDescription
fsStream to use

Description#

Read a nullable vector3 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.WriteVector3Nullable(new Vector3(-42, -1, 42));
            ms.Seek(0, SeekOrigin.Begin);            Debug.Log("Result: " + ms.ReadVector3Nullable());    }
}