Configuration
Overview
Settings will be saved automatically in a file called AssetInventoryConfig.json. This happens by default in the Documents folder of the currently logged in user. This way the tool can work independently of the Unity project and the asset search is available in an identical way everywhere. Two alternatives are available:
- It is possible to force the tool to use a project-specific configuration. To do so, copy the AssetInventoryConfig.json file anywhere into the project and restart Unity. The detected location will be shown on the Settings tab under Maintenance Functions.
- Using the environment variable “ASSETINVENTORY_CONFIG_PATH” a custom location (just the folder name) can be specified.
Some advanced settings can only be set in the .json file and are not otherwise accessible through the UI. An example for this is the delay after which the search will start searching. Feel free to adjust these values as well. Both for changing the config location as well as editing the json file Unity needs to be restarted.
Installing as a Package
Especially when managing many Unity projects keeping Asset Inventory up-to-date can mean spending quite some time on manual package updates. An alternative is to install the tool in one Unity project only and then referencing this single installation via package reference in the manifest.json. This way all Unity installations always use the same tool version.
The easiest way to set this up is to open the manifests from the Packages folder where the tool should be referenced and adding it directly there. The path can either be absolute or relative. Example:
"com.wetzold.asset-inventory": "file:../../MySourceProject/Assets/AssetInventory",