Navigation
API > API/Plugins > API/Plugins/DataRegistry
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDataRegistrySource
- UDataRegistrySource_CurveTable
- UDataRegistrySource_DataTable
- UMetaDataRegistrySource
- UMetaDataRegistrySource_CurveTable
- UMetaDataRegistrySource_DataTable
References
| Module | DataRegistry |
| Header | /Engine/Plugins/Runtime/DataRegistry/Source/DataRegistry/Public/DataRegistrySource.h |
| Include | #include "DataRegistrySource.h" |
Syntax
UCLASS&40;Abstract, EditInlineNew, DefaultToInstanced, Within&61;DataRegistry, CollapseCategories&41;
class UDataRegistrySource : public UObject
Remarks
Specifies a source for DataRegistry items, which is an interface that provides asynchronous access to individual structs
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsInitialized | True if this is currently considered to be initialized | |
| TObjectPtr< UDataRegistrySource > | ParentSource | What data source we were created from, if this is a transient source |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AcquireItem
(
FDataRegistrySourceAcquireRequest&& Request |
Call to start an acquire request | |
| void | AddRuntimeSources
(
TArray< UDataRegistrySource* >& OutRuntimeSources |
Gets the list of runtime sources that should be registered for this source, will either be itself or a list of children | |
| UDataRegistrySource * | CreateTransientSource
(
TSubclassOf< UDataRegistrySource > SourceClass |
Creates a new runtime source, but does not register it yet | |
| void | Deinitialize () |
Called on editor-defined sources to disable access and restore to state before initialization, won't do anything if not initialized | |
| void | Called on editor-defined states to check to check a source is still valid after major changes | ||
| FString | Return a useful debug name for this source | ||
| EDataRegistryAvailability | GetItemAvailability
(
const FName& ResolvedName, |
Returns availability of individual item, also get raw memory address if available | |
| const UScriptStruct * | Gets structure from parent registry | ||
| UDataRegistrySource * | Returns the editor-defined source, which is either this or the parent source | ||
| const UDataRegistry * | GetRegistry () |
The outer for this should always be a Registry | |
| UDataRegistry * | GetRegistry () |
The outer for this should always be a Registry | |
| void | GetResolvedNames
(
TArray< FName >& Names |
Fills in set of all names provided by this source | |
| EDataRegistryAvailability | Returns how available this data is generally | ||
| void | HandleAcquireResult
(
const FDataRegistrySourceAcquireRequest& Request, |
Call to indicate that a item is available, will insert into cache | |
| bool | Initialize () |
Called on editor-defined sources to initialize this source so it is ready to take requests | |
| bool | Returns true if this state has been initialized for use | ||
| bool | IsSpecificAssetRegistered
(
const FSoftObjectPath& AssetPath |
Returns true if this asset is already registered with this source | |
| bool | Returns true if this is a runtime-only source | ||
| void | Called to regenerate runtime sources if needed, won't do anything for simple sources | ||
| bool | RegisterSpecificAsset
(
const FAssetData& AssetData, |
Attempt to register a specified asset with a source, returns true if any changes were made. | |
| void | Called on runtime sources to reset caches and related state because game has ended or registry settings have changed | ||
| void | TimerUpdate
(
float CurrentTime, |
Called by owning source as periodic update, can release resources or refresh connections | |
| int32 | UnregisterAssetsWithPriority
(
int32 AssetPriority |
Unregisters all previously registered assets in a specific registry with a specific priority, can be used as a batch reset. | |
| bool | UnregisterSpecificAsset
(
const FSoftObjectPath& AssetPath |
Removes references to a specific asset, returns bool if it was removed |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |