Skip to main content

IOExtensions.WriteFloat

Declaration#

public static void WriteFloat(Stream fs, float value)

Parameters#

NameDescription
fsStream to use
valueValue to write

Description#

Write a float 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.WriteFloat(13.4f);
            ms.Seek(0, SeekOrigin.Begin);            Debug.Log("Result: " + ms.ReadFloat());    }
}