The FileSize
property represents the total size of a package in megabytes (MB). This property is applicable only to packages sourced from Asset Party. It does not calculate the total file size for local packages.
The FileSize
property represents the total size of a package in megabytes (MB). This property is applicable only to packages sourced from Asset Party. It does not calculate the total file size for local packages.
To access the file size of a package, use the FileSize
property on an instance of the Package
class. This will return a float
value representing the size in MB.
// Example of accessing the FileSize property Package myPackage = new Package(); float sizeInMB = myPackage.FileSize; // Output the file size // Note: Replace the following line with your preferred method of displaying the value // e.g., using a UI element or logging system // DisplayFileSize(sizeInMB);