Asset Database
Overview
The Asset Database is a database of all the Assets that are either used in the Project or available to be used at runtime. It allows the user to keep track of all these Assets and have easy access to information about them, such as how many times they are used in the Project or their location.
In summary, the Asset Database shows two sets of Assets:
Assets that are currently used in the Project. These are added automatically when used in the Project.
Assets that are available to be used in the Project at runtime. These have to be added manually from the Asset Manager.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-f7a692b809e19ed2f65b804580cacc4907c20d18%252Fasset-db1.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e664ae3c&sv=1)
For each Asset, the Asset Database displays the following information:
ID
: Unique identifier for the Asset.Icon
: Icon that represents theType
of Asset.Type
: Type of Asset.Label
: Label for the Asset. By default, it is set to the filename and it can be edited directly in the Asset Database.Source
: The origin of an Asset.Path
: Path to the file. For Assets located in the Project Asset folder, it shows the relative path, and for other Assets, it shows the full path.#
: Number of times that the Asset is used in the Project.
And it offers two options:
Highlight asset in Asset Manager
: Press this option to highlight the Asset in the Asset Manager.Remove asset from Asset Database
: Press this option to remove the Asset from the Asset Database.
Adding Assets to the Asset Database
There are three ways in which Assets can be added to the Asset Database: Using Assets in the Project, manually, or using Logic.
Using Assets in the Project
Using an Asset automatically adds it to the Asset Database.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-ea8c55f934d926780d8a5b255eb040da874bff39%252Fasset-db-addtoproject.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=81be6860&sv=1)
Manually
An Asset can be added manually to the Asset Database. To do this, simply drag and drop a file in the Asset Database. This can be done from the Asset Manager or from the File Explorer, thus allowing one to add files that are not in the Asset folder.
There are three special cases:
Keyboard Layouts have to be added in Project Settings and then they will be automatically added to the Asset Database.
Fonts have to be added in Project Settings and then they will be automatically added to the Asset Database.
Materials are automatically added to the Asset Database when created in the Asset Manager.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-b4a12a527319dd5e0acfe739a652b9d1bcbe0850%252Fasset-db-addmanually.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=79c000a&sv=1)
At runtime using Logic
Assets can be added to the Asset Database using Logic. For this purpose, use the Add to Asset Database Node, which receives the path of the file to be added to the Asset Database.
See in the image below a simple example of how to add an Asset to the Asset Database in the Logic, using, besides the Add to Asset Database Node, the String Value Node:
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-99f2540e807c31959432279b4c947748d417242e%252Fassetdb-in-logic2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=1f6ed72c&sv=1)
Features
The Asset Database offers several features that are useful for managing Assets. These are: search, filter, highlight use, highlight in Asset Manager and remove.
Search
The search bar on the top right of the Asset Database allows the user to search Assets by either ID
or Label
.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-b5b235f556add7b902cb39d423acf9bc5c6830e4%252Fassetdb-search.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b80896c8&sv=1)
Filter
The filter on the top right of the Asset Database allows the user to filter the Assets by Type
.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-c2d009421a5393c9cc18fa66f488947354060d65%252Fassetdb-filter.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d8d2765d&sv=1)
Highlight use
By clicking on the ID
of an Asset, its use in the Scene Outliner and Viewport will be highlighted.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-951db6ad50bea038d34a50c6221b294108f88203%252Fassetdatabasehighlightuse20232.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=9a1126bc&sv=1)
Highlight in Asset Manager
By clicking on the magnifying glass on an Asset entry, this Asset will be highlighted in the Asset Manager.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-377df74fb98ec61eee344e2abdd7f3b5abd1a8cd%252Fassetdb-highlight.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4ca53f65&sv=1)
Remove
To remove an Asset from the Asset Database, click on the minus on the far right of an Asset entry.
If an Asset was not manually added to the Asset Database (it was added only by being present somewhere in a Scene), it will be removed when it is no longer used. For example, if a single Sprite uses some image and either the Sprite or image is deleted, the Asset in the Asset Database will be removed.
However, if the Asset was manually dragged into the Asset Database and there are no current useages of the Asset, it will remain in the Database but the counter will reach 0.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-386ff836c350a88616f8ed4f7bade9f9e9cc1a75%252Fassetdb-remove.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d886383b&sv=1)
In Logic Editor
All Assets in the Asset Database can be dragged to the Logic Editor. This will create a Node of the Asset which has one output that matches the type of the Asset. This allows the user to easily use any Asset in their Logic.
Last updated