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