FPrimaryAssetRules

Structure defining rules for what to do with assets, this is defined per type and can be overridden per asset

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/AssetManagerTypes.h

Include

#include "Engine/AssetManagerTypes.h"

Syntax

struct FPrimaryAssetRules

Remarks

Structure defining rules for what to do with assets, this is defined per type and can be overridden per asset

Variables

Name Description

Public variable

bool

 

bApplyRecursively

If true, this rule will apply to all referenced Secondary Assets recursively, as long as they are not managed by a higher-priority Primary Asset.

Public variable

int32

 

ChunkId

Assets will be put into this Chunk ID specifically, if set to something other than -1.

Public variable

EPrimaryAssetCo...

 

CookRule

Rule describing when this asset should be cooked.

Public variable

int32

 

Priority

Primary Assets with a higher priority will take precedence over lower priorities when assigning management for referenced assets.

Constructors

Name Description

Public function

FPrimaryAssetRules()

Functions

Name Description

Public function Const

bool

 

IsDefault()

Checks if all rules are the same as the default. If so this will be ignored.

Public function

void

 

OverrideRules

(
    const FPrimaryAssetRules& Override...
)

Override non-default rules from an override struct.

Public function

void

 

PropagateCookRules

(
    const FPrimaryAssetRules& ParentRu...
)

Propagate cook rules from parent to child, won't override non-default values.

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FPrimaryAssetRules& Other
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback