Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
DRD is a highest level API that encapsulates entire resources managing process providing you an interface that allows to access the resources by them signatures skipping other stages.
Explore API: Doloro.DataManagement.DynamicResources.DynamicResourcesDatabase
Before the database will gets data, you need to request it.
You may do this in 2 ways:
To call the database data loading via API you need to follow next steps.
DynamicResourcesDatabase.LoadResources()
static handler.DynamicResourcesDatabase.onLoaded
event.After 3rd step the database data has been loaded and can be used.
If you are using Asset Bundles Tools module you no need to handle manual call of data base loading.
But you still need to add a loader to the AssetBundlesLoader
.
To setup the loader, follow next steps:
AssetBundlesLoader
component.DynamicResourcesLoader
via add component menu by Doloro GDK \ Data Management \ Asset Bundles Tools \ Dynamic Resources Loader
path.Now the loader will be automatically enqueued and handled by the AssetBundlesLoader
after it fish with bundles loading.
See also:
When the database has been loaded, you can check it by using isLoaded
property, you may access a DynamicResource
prototype via its signature.
Member | Type | Meaning |
---|---|---|
RESOURCE_BUNDLE | string | DynamicResource.bundle to search. |
RESOURCE_KEY | string | DynamicResource.key to search. |
EXPECTED_TYPE | Type | Expecting type of the receiving DynamicResource object. DynamicResource in most cases but could be other in case you are expecting a derived class. |