IOExtensions.ReadQuaternionNullable
Declaration#
public static Nullable<Quaternion> ReadQuaternionNullable(Stream fs)Parameters#
| Name | Description |
|---|---|
| fs | Stream to use |
Description#
Read a nullable quaternion 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.WriteQuaternionNullable(transform.rotation);
ms.Seek(0, SeekOrigin.Begin); Debug.Log("Result: " + ms.ReadQuaternionNullable()); }
}