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 property is read-only and returns 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 'myPackage' with an actual instance of a Package // Console.WriteLine($"The package size is {sizeInMB} MB");