Navigation
API > API/Plugins > API/Plugins/DataRegistry
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEngineSubsystem
- UDataRegistrySubsystem
References
| Module | DataRegistry |
| Header | /Engine/Plugins/Runtime/DataRegistry/Source/DataRegistry/Public/DataRegistrySubsystem.h |
| Include | #include "DataRegistrySubsystem.h" |
Syntax
UCLASS&40;NotBlueprintType&41;
class UDataRegistrySubsystem : public UEngineSubsystem
Remarks
Singleton manager that provides synchronous and asynchronous access to data registries
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FString > | AssetScanPaths | Paths that will be scanned for registries. | |
| bool | bFullyInitialized | True if initialization has finished and registries were scanned, will be false if not config enabled. | |
| bool | bReadyForInitialization | True if initialization is ready to start, will be true even if config disabled. | |
| TMap< FDataRegistryType, TArray< FPreregisterAsset > > | PreregisterAssetMap | ||
| TSortedMap< FName, TObjectPtr< UDataRegistry >, FDefaultAllocator, FNameFastLess > | RegistryMap | ||
| TArray< FSoftObjectPath > | RegistryPathsToIgnore | Specific registries to avoid registering, may be in memory but will not be registered. | |
| TArray< FSoftObjectPath > | RegistryPathsToLoad | Specific registries to load, will be added to AssetScanPaths at scan time. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AcquireItem
(
const FDataRegistryId& ItemId, |
Start an async load of an item, delegate will be called on success or failure of acquire. | |
| bool | AcquireItemBP
(
FDataRegistryId ItemId, |
Starts an asynchronous acquire of a data registry item that may not yet be cached. | |
| void | AddReferencedObjects
(
UObject* InThis, |
||
| void | ApplyPreregisterMap
(
UDataRegistry* Registry |
||
| bool | True if all registries should have been initialized | ||
| FString | Conv_DataRegistryIdToString
(
FDataRegistryId DataRegistryId |
Converts a Data Registry Id to a string. | |
| FString | Conv_DataRegistryTypeToString
(
FDataRegistryType DataRegistryType |
Converts a Data Registry Type to a string. | |
| void | De-initializes all loaded registries | ||
| void | DumpCachedItems
(
const TArray< FString >& Args |
Dumps out a text representation of every item in the registry | |
| void | Outputs all registered types and some info | ||
| void | EndPIE
(
bool bStartSimulate |
||
| bool | Returns true if the values are equal (A == B) | ||
| bool | Returns true if the values are equal (A == B) | ||
| FDataRegistryCacheGetResult | EvaluateCachedCurve
(
float& OutValue, |
Computes an evaluated curve value, as well as the actual curve if it is found. | |
| void | EvaluateDataRegistryCurve
(
FDataRegistryId ItemId, |
Attempts to evaluate a curve stored in a DataRegistry cache using a specific input value | |
| void | FindCachedItemBP
(
FDataRegistryId ItemId, |
Attempts to get cached structure data stored in a DataRegistry, modifying OutItem if the item is available (EXPERIMENTAL) this version has an output param and enum result | |
| UDataRegistrySubsystem * | Get () |
Returns the global subsystem instance | |
| void | GetAllRegistries
(
TArray< UDataRegistry* >& AllRegistries, |
Gets list of all registries, useful for iterating in UI or utilities | |
| const T * | GetCachedItem
(
const FDataRegistryId& ItemId |
Returns a cached item of specified struct type. | |
| bool | GetCachedItemBP
(
FDataRegistryId ItemId, |
Attempts to get cached structure data stored in a DataRegistry, modifying OutItem if the item is available (EXPERIMENTAL) this version has an input param and simple bool return | |
| bool | GetCachedItemFromLookupBP
(
FDataRegistryId ItemId, |
Attempts to get structure data stored in a DataRegistry cache after an async acquire, modifying OutItem if the item is available | |
| FDataRegistryCacheGetResult | GetCachedItemRaw
(
const uint8*& OutItemMemory, |
Gets the cached or precached data and struct type. | |
| FDataRegistryCacheGetResult | GetCachedItemRawFromLookup
(
const uint8*& OutItemMemory, |
Gets the cached or precached data and struct type using an async acquire result. | |
| FText | GetDisplayTextForId
(
FDataRegistryId ItemId |
Returns proper display text for an id, using the correct id format | |
| UDataRegistry * | GetRegistryForType
(
FName RegistryType |
Finds the right registry for a type name | |
| bool | IgnoreRegistryPath
(
const FSoftObjectPath& RegistryAssetPath |
Removes specific data registry asset from the registration map, can be undone with LoadRegistryPath | |
| void | InitializeAllRegistries
(
bool bResetIfInitialized |
Initializes all loaded registries and prepares them for queries | |
| bool | IsConfigEnabled
(
bool bWarnIfNotEnabled |
Returns true if the system is enabled via any config scan settings, will optionally warn if not enabled | |
| bool | IsValidDataRegistryId
(
FDataRegistryId DataRegistryId |
Returns true if this is a non-empty item identifier, does not check if it is currently registered | |
| bool | IsValidDataRegistryType
(
FDataRegistryType DataRegistryType |
Returns true if this is a non-empty type, does not check if it is currently registered | |
| void | Loads all registry assets and initializes them, this is called early in startup | ||
| bool | LoadRegistryPath
(
const FSoftObjectPath& RegistryAssetPath |
Load and initialize a specific registry, useful for plugins. | |
| bool | Returns true if the values are not equal (A != B) | ||
| bool | Returns true if the values are not equal (A != B) | ||
| void | |||
| void | Initialization order, need to wait for other early-load systems to initialize. | ||
| void | |||
| void | PreBeginPIE
(
bool bStartSimulate |
||
| void | PreregisterSpecificAssets
(
const TMap< FDataRegistryType, TArray< FSoftObjectPath >>& AssetMap, |
Schedules registration of assets by path, this will happen immediately or will be queued if the data registries don't exist yet | |
| void | Refreshes the active registry map based on what's in memory | ||
| bool | RegisterSpecificAsset
(
FDataRegistryType RegistryType, |
Attempt to register a specified asset with all active sources that allow dynamic registration, returning true if anything changed. | |
| void | Handles changes to DataRegistrySettings while engine is running | ||
| void | Resets state for all registries, call when gameplay has concluded to destroy caches | ||
| int32 | UnregisterAssetsWithPriority
(
FDataRegistryType RegistryType, |
Unregisters all previously registered assets in a specific registry with a specific priority, can be used as a batch reset. | |
| bool | UnregisterSpecificAsset
(
FDataRegistryType RegistryType, |
Removes references to a specific asset, returns bool if it was removed |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Typedefs
| Name | Description |
|---|---|
| FPreregisterAsset | List of assets to attempt to register when data registries come online. |
| FRegistryMapPair |