Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > FPrimaryAssetCookRuleUnion
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManagerTypes.h |
Include | #include "Engine/AssetManagerTypes.h" |
Source | /Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
void UnionWith
(
EPrimaryAssetCookRule CookRule,
bool bDirectReference,
const FPrimaryAssetId & Id,
int32 Priority
)
Remarks
Add the information from another manager to the Union.
Parameters
Name | Description |
---|---|
CookRule | The CookRule in the manager's FPrimaryAssetRules. CookRules that add references (AlwaysCook, DevelopmentAlwaysCook) apply an inclusion for their production level (Production or Development) and all lower levels. (e.g. AlwaysCooked applies an inclusion for both Production and Development). CookRules that add exclusions (NeverCook, ProductionNeverCook, DevelopmentAlwaysProductionNeverCook) apply an exclusion for their production level and all higher levels (e.g. NeverCooked applies an exclusion for both Production and Development.) Inclusions for each level are unioned, and exclusions for each level are unioned. |
bDirectReference | Whether the manager's reference to the asset being managed is direct. Inclusions (AlwaysCook, DevelopmentAlwaysCook) apply transitively - both direct and indirect references apply the inclusion. Exclusions (NeverCook, ProductionNeverCook, DevelopmentAlwaysProductionNeverCook) apply only to direct references. e.g. PrimaryAssetId A has DevelopmentAlwaysProductionNeverCook A -> B B -> C B == DevelopmentAlwaysProductionNeverCook C == DevelopmentAlwaysProductionUnknownCook |
Id | Record of the Manager that has the reference to the asset, used for error feedback if there is a conflict. |
Priority | The Manager's Priority. In the case of a conflict between two managers (one excluding and one including at the same level), if the priorities are different this is not an error, and the exclusion or inclusion directive from the higher-priority mangager will be kept. If the priorities are equal, the exclusion will be kept and a conflict result will be returned from GetRule. |