EditorUtility
.FormatBytes
Manual
Reference
Scripting
Scripting
>
Editor Classes
>
EditorUtility
EditorUtility
.FormatBytes
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
EditorUtility
All Members
Class Functions
ClearProgressBar
CloneComponent
CollectDeepHierarchy
CollectDependencies
CompressTexture
CopySerialized
CreateEmptyPrefab
CreateGameObjectWithHideFlags
DisplayCancelableProgressBar
DisplayDialog
DisplayDialogComplex
DisplayPopupMenu
DisplayProgressBar
ExtractOggFile
FindPrefabRoot
FocusProjectWindow
FormatBytes
GetObjectEnabled
GetPrefabParent
GetPrefabType
InstanceIDToObject
InstantiatePrefab
IsPersistent
OpenFilePanel
OpenFolderPanel
ReconnectToLastPrefab
ReplacePrefab
ResetGameObjectToPrefabState
ResetToPrefabState
SaveFilePanel
SaveFilePanelInProject
SaveFolderPanel
SetDirty
SetObjectEnabled
SetSelectedWireframeHidden
UnloadUnusedAssets
UnloadUnusedAssetsIgnoreManagedReferences
static
function
FormatBytes (bytes :
int
) :
string
Description
Returns a text for a number of bytes.
// prints "100 bytes"
print (
EditorUtility.FormatBytes
(100));
// prints "2.0 KB"
print (
EditorUtility.FormatBytes
(2048));