Skip to content

Reporting

Overview

This module will scan the complete project and try to identify packages that were being used. It also supports exporting your data and listing used licenses.

Reporting view with project usage totals, an identified-packages table and reporting actions.
Use Identify Used Packages to see which indexed packages contribute files to the current project.

Asset Inventory documentation screenshot

Packages that could be identified with 100% confidence, where also the version is guaranteed to be correct, will be shown with a bold version column. All registry packages automatically fall into this category. From Unity 2023+ also local assets are typically identified correctly if imported through Unity 2023+, since it will store the asset origin in the meta data files allowing to pinpoint the exact version correctly.

When selecting an asset in the Unity Project View, the reporting tab will try to identify the associated package in the lower right info box.

Asset Export

In case you want to perform your own analysis or create reports it is possible to export the database contents into various formats. Exporting packages can be done one-by-one or in bulk. Supported options are:

Static HTML export displaying a searchable package grid with category and view controls.
Open the exported HTML catalog to browse package previews and filter the list in a browser.

The catalog is not a dead end or proprietary silo. Use ready-made CSV, static HTML, package-content, license, override, and Markdown exports, or adapt the template system when a team, customer portal, spreadsheet, or internal process needs a different format.

  • CSV: for easy processing in Excel and other compatible software
  • Template-Based: complex export formats like HTML webpages or any custom format utilizing an easy but powerful scripting language
  • Package Contents: will extract packages and copy their files to another directory
  • Licenses: exports package licenses and agreements in Markdown. Reporting also offers used-package and selected-package scopes, including unresolved entries.
  • Overrides: JSON files which can be used to override package-specific metadata in team scenarios (e.g. to enforce common tags & categories)

Asset Inventory documentation screenshot

CSV Export

Semicolon-delimited package export open in a text editor with package names, categories and publishers.Will export package metadata to a single file which can be read by spreadsheet software or other tools.

Asset Inventory documentation screenshot

Package Content Export

Exporting files from a package will allow you to reuse these easily in other contexts.

Asset Inventory documentation screenshot

Overrides

Override Json files are a way of providing additional information for packages during indexing. This is helpful if e.g. a whole team is indexing and you want to ensure the same category or certain tags are set the same everywhere. To have a better starting point these files can be created with the existing data so that you only need to adjust them instead of creating them from scratch.

Asset Export configured for Package Override File with controls for choosing the override fields.

Licenses

In Reporting, choose Export..., then License Export to export agreements for packages used by the current project. With packages, files or folders selected, Export Selected... limits the scope to selected packages and the packages owning selected files, including files in selected folders. Project-specific choices and unresolved entries are retained. For packages in the catalog, Edit License... opens the applicable license choices. Review unresolved or unknown license information and project-specific choices before relying on the report.

Asset Inventory documentation screenshot

Template-Based

The most powerful export mechanism is the template based approach. It processes a whole set of input files, utilizes Scriban, a template scripting language, to embed data and export the result to a custom directory. Some powerful templates are already included and custom ones can be added easily.

Asset Export configured to use the HTML Packages and Files template and a target folder.

Configurations allow to use different paths depending on the target environment, e.g. for local testing or when deployed remotely on a server. In one case you might want to load data & images from specific folders, another time from a CDN URL.

Depending on the type of template, only a subset of features might be visible. The included HTML template points to the Previews folder and therefore will always export next to that directory. What features are possible is defined in the template descriptor, an optional Json file with the same name as the template.

Unity Project window showing the bundled static HTML and markup export templates.

Below is an example template descriptor for the package-only HTML export based on the full HTML export template, extending it but deleting files and moving others around.

Asset Inventory documentation screenshot

Available properties: name, description, version, date, readOnly, isSample, fixedTargetFolder, entryPath, needsDataPath, needsImagePath, packageFields, fileFields, inheritFrom, moveFiles, deleteFiles

Exported HTML Magic Search page with model results and details for the selected package.The full HTML export provides a serverless file search right inside the HTML export with powerful filter options, paging and rich visualization. The package view lists all packages and allows to see package details.

In Advanced mode, you can create or extend templates. Extending a template means that all files of the original template will be materialized upon export plus the files you put into the new template and the changes expressed in the descriptor.

Asset Export template configuration showing the target folder, image path, data path, and Exclude Images option.

You can also activate the template development mode. This is powerful to quickly iterate on templates, reduce the amount of data processed, automatically trigger exports upon changes in the dev directory and more. Setting a dev folder will export the template from this folder instead from the zip. Setting a test folder will always export to this folder first before copying the files over to the target (or skip this step if Publish Result is deactivated).

Template Development Mode settings for the development and test folders, detail-page count and publishing options.

Once done developing, press Publish to package the folder into a zip and copy it into the Templates directory.

It is strongly recommended to use a dedicated external folder though for storing custom templates since the tool is usually updated by removing the full installation, which would then also remove the custom templates. This can be specified under Settings/Locations 🡪 Custom HTML Templates. Once set, all new and modified templates will automatically be stored there.

Template Language

Files of type .html, .js, .csv, .txt and .md will be parsed by the template engine and any placeholders will be replaced. The engine used is Scriban. It is a simple but powerful language supporting many programming constructs, variables, include files and more. Below is an example how to iterate over all packages.

HTML export template source for rendering package cards.

A number of predefined variables exist which can be accessed:

  • dataPath: path to the json files
  • imagePath: path to the preview images
  • pageSize: number of results per page
  • hasFilesData: true if the current package has files indexed
  • internalIdsOnly: true if only the internal id should be used for detail pages
  • packages: all packages selected for export
  • package: the currently selected package (e.g. on detail pages)
  • packageFiles: all files of the current package

Some files inside a template trigger special functionality:

  • packages.json: will contain the data about all packages
  • files.json: will contain minified data about all packages
  • package_details.html: will be replaced with files of the form package_412.html where 412 is the internal Id of a package for each package. If the asset is from the Asset Store, the name fill be package_f72632.html using the foreign Id of the package if not set otherwise by the environment setting internalIdsOnly.

Scanning for Freebies

When purchasing Asset Store packages, authors sometimes grant reduced or even free access to other packages of them. Also, some authors sell bundles. When purchasing a bundle, a linked list of other packages becomes available for free. These packages are typically listed in the description.

The Asset Store does not show these free packs though easily and one has to actually go to every linked package in order to claim them.

This can lead to the common situation, that many packages remain unclaimed although they are already owned. When not claimed, the tool will not index them to make the contents available for use.

Asset Inventory documentation screenshot

Using the Freebie scanner action will check all your purchased packages, if they contain any links to other assets in the description and will show these as potential candidates that you can claim.

Asset Inventory documentation screenshot

Since the Asset Store does not provide an API to detect this automatically, you will need to check the results manually on the Asset Store website but can easily open the identified candidates from the log file or, if using the force mode, all will be opened automatically as tabs. Keep in mind, that only a fully loaded tab will show the correct result as the Asset Store changes the price only right at the end of the loading process.