Navigation
API > API/Plugins > API/Plugins/DataRegistry
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDataRegistrySource
- UDataRegistrySource_DataTable
References
| Module | DataRegistry |
| Header | /Engine/Plugins/Runtime/DataRegistry/Source/DataRegistry/Public/DataRegistrySource_DataTable.h |
| Include | #include "DataRegistrySource_DataTable.h" |
Syntax
UCLASS&40;Meta&61;&40;DisplayName&61;"DataTable Source"&41;&41;
class UDataRegistrySource_DataTable : public UDataRegistrySource
Remarks
Data source that loads from a specific data table containing the same type of structs as the registry
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UDataTable > | CachedTable | Hard ref to loaded table | |
| float | LastAccessTime | Last time this was accessed | |
| TSharedPtr< FStreamableHandle > | LoadingTableHandle | Handle for in progress load | |
| TArray< FDataRegistrySourceAcquireRequest > | PendingAcquires | List of requests to resolve when table is loaded | |
| TObjectPtr< UDataTable > | PreloadTable | Preload table ref, will be set if this is a hard source | |
| TSoftObjectPtr< UDataTable > | SourceTable | What table to load from | |
| FDataRegistrySource_DataTableRules | TableRules | Access rules |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clears cached table pointer so it can be GCd | ||
| void | Tells it to go through each pending acquire | ||
| void | Callback after table loads | ||
| void | SetCachedTable
(
bool bForceLoad |
Tells it to set CachedTable if possible | |
| void | SetSourceTable
(
const TSoftObjectPtr< UDataTable >& InSourceTable, |
Update source table and rules, meant to be called from a meta source |
Overridden from UDataRegistrySource
| Type | Name | Description | |
|---|---|---|---|
| bool | AcquireItem
(
FDataRegistrySourceAcquireRequest&& Request |
Call to start an acquire request | |
| 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 | |
| void | GetResolvedNames
(
TArray< FName >& Names |
Fills in set of all names provided by this source | |
| EDataRegistryAvailability | Returns how available this data is generally | ||
| bool | Initialize () |
Called on editor-defined sources to initialize this source so it is ready to take requests | |
| 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 |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | PreSave
(
FObjectPreSaveContext SaveContext |
Presave function. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | PreSave
(
const ITargetPlatform* TargetPlatform |
Use version that takes FObjectPreSaveContext instead. |