Navigation
API > API/Plugins > API/Plugins/StormSyncCore > API/Plugins/StormSyncCore/FStormSyncCoreUtils
Description
Helper function to retrieve the FAssetData associated with a given file.
Using AssetRegistry LoadPackageRegistryData() instead of GetDependencies() to ensure a consistent behavior between editor and -game mode.
| Name | GetAssetData |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/StormSync/Source/StormSyncCore/Public/StormSyncCoreUtils.h |
| Include Path | #include "StormSyncCoreUtils.h" |
| Source | /Engine/Plugins/VirtualProduction/StormSync/Source/StormSyncCore/Private/StormSyncCoreUtils.cpp |
static bool GetAssetData
(
const FString & InPackageName,
TArray < FAssetData > & OutAssets,
TArray < FName > & OutDependencies
)
Whether the asset data could be retrieved or not
Parameters
| Name | Remarks |
|---|---|
| InPackageName | PackageName (eg. /Game/Path/Asset) to base the operation on |
| OutAssets | The associated FAssetData (FLoadPackageRegistryData.Data) assets from LoadPackageRegistryData() call |
| OutDependencies | List of package dependencies |