Returns a text for a number of bytes.
#pragma strict public class FormatBytesExample extends MonoBehaviour { function Start() { // prints "100 bytes" print(EditorUtility.FormatBytes(100)); // prints "2.0 KB" print(EditorUtility.FormatBytes(2048)); } }
using UnityEngine; using UnityEditor;
public class FormatBytesExample : MonoBehaviour { void Start() { // prints "100 bytes" print(EditorUtility.FormatBytes(100));
// prints "2.0 KB" print(EditorUtility.FormatBytes(2048)); } }
Did you find this page useful? Please give it a rating: