Skip to main content

IOExtensions.WriteVector3

Declaration#

public static void WriteVector3(Stream fs, Vector3 value)

Parameters#

NameDescription
fsStream to use
valueValue to write

Description#

Write a vector3 to a stream

Usage#

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