An asset browser for local assets
- Click the folder icon in the top right and select the folder that all your assets are in.
- Wait for all the assets to appear.
- Find the asset you want and click
import
. - The assets should be in
res://Assets/{asset_name}
.
Local_Assets/asset_dir
- directory to look for the assets. mainly used to keep the same directory across projects
Local_Assets/File_preview_names
- An array of names for preview files. files must be images.
Local_Assets/use_first_image_found
- If a file in a dose not match any name in Local_Assets/File_preview_names
and no Assets.json
file is found it will take the first image file it finds and use that
- If assets don't show up this could be because the addon looks for image files with a specific name if it can't find a file with that name it skips it. You can add file names in
EditorSettings -> Local_Assets -> File_preview_names
.
Alternatively, you can force a directory to be an asset by putting a file namedAssets.json
in the folder you want to be an asset.
TheAssets.json
file must contain the following properties:
-path
- the base path for the asset everything in here will be copied to your project
-name
- the name of the asset that will appear in the browser
- (Optional)image_path
- Preview image