π Database
Editor
SystemDatabase is a scriptable object used for managing system assets, their unique IDs. Initially designed to be used in Editor, but it may also be accessed at runtime.
You can register all assets in the project here or clear the database. But creating a new assets should be done through Manager Window.

Runtime
Items in the database are scriptable objects as well, so they can be as any other asset in unity.
Alternatively you can retrieve them using their IDs from this database.
[SerielizeField] private SystemDatabase database;
[SerielizeField] private int resourceID;
private void Awake()
{
// Or at runtime
// var database = SystemDatabase.GetInstance();
// Find the asset using its ID.
var resource = database.FindAssetById(resourceID);
}
Last updated