Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Description
Helper function for GetPackageCookRule. Given the list of Managers that manage a package, calculate the unioned cookrule for the package.
| Name | CalculateCookRuleUnion |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
| Include Path | #include "Engine/AssetManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
EPrimaryAssetCookRule CalculateCookRuleUnion
(
const TMap < FPrimaryAssetId , UE::AssetRegistry::EDependencyProperty > & Managers,
TOptional < TPair< FPrimaryAssetId , FPrimaryAssetId > > * OutConflictIds
) const
See Also
-
FPrimaryAssetCookRuleUnion::UnionWith. If two managers are in conflict (e.g. one is CookAlways
-
the other is ProductionNeverCook)
-
the higher-priority will win. If they have the same priority
-
the NeverCook rule will win
-
and the managers will be reported in the OutConflictIds field.