Documentation

Unity Engine

Download Unity

Unity Engine

resourceDataSize

Total size, in bytes, of the binary data stored in.resS and.resource files.
Read time 1 minuteLast updated 2 months ago

Definition

public ulong resourceDataSize { get; }

Remarks

Resource files contain large binary data such as textures, audio, and meshes that are referenced from serialized objects. Padding used for data alignment may cause actual files on disk to be slightly larger than the reported size. This size is calculated before any compression is applied if the file is inside a Unity Archive.