IOExtensions.WriteRectNullable
Declaration#
public static void WriteRectNullable(Stream fs, Nullable<Rect> value)Parameters#
| Name | Description |
|---|---|
| fs | Stream to use |
| value | Value to write |
Description#
Write a nullable rect 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.WriteRectNullable(new Rect(10, 10, 32, 60));
ms.Seek(0, SeekOrigin.Begin); Debug.Log("Result: " + ms.ReadRectNullable()); }
}