float FileSize { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

Use the FileSize property to retrieve the size of a package in MB. This can be useful for determining the download size of a package from Asset Party.

Example

// Example of accessing the FileSize property
Sandbox.Package myPackage = new Sandbox.Package();
float sizeInMB = myPackage.FileSize;

// Output the file size
// Note: Replace 'myPackage' with an actual package instance
// Console.WriteLine($"Package size: {sizeInMB} MB");