Navigation
API > API/Runtime > API/Runtime/Engine
Storage for nanite material override. An override material can be selected, and the override material can be used according to the current settings. We handle removing the override material and its dependencies from the cook on platforms where we can determine that the override material can never be used.
| Name | FMaterialOverrideNanite |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialOverrideNanite.h |
| Include Path | #include "Materials/MaterialOverrideNanite.h" |
Syntax
USTRUCT ()
struct FMaterialOverrideNanite
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnableOverride | bool | Stored flag to set whether we apply this override. | Materials/MaterialOverrideNanite.h | |
| OverrideMaterialEditor | TObjectPtr< UMaterialInterface > | EditorOnly version of the OverrideMaterial reference. | Materials/MaterialOverrideNanite.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool FixupLegacySoftReference
(
UObject* OptionalOwner |
Resolve and fixup anylegacy soft pointer. | Materials/MaterialOverrideNanite.h | |
| This will return the cached override material pointer, if the override material is set, or nullptr otherwise. | Materials/MaterialOverrideNanite.h | ||
bool Serialize
(
FArchive& Ar |
Serialize function as declared in the TStructOpsTypeTraits. | Materials/MaterialOverrideNanite.h | |
void SetOverrideMaterial
(
UMaterialInterface* InMaterial, |
Setup the object directly. | Materials/MaterialOverrideNanite.h |