Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialOverrideNanite.h |
| Include | #include "Materials/MaterialOverrideNanite.h" |
Syntax
USTRUCT ()
struct FMaterialOverrideNanite
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableOverride | Stored flag to set whether we apply this override. | |
| TObjectPtr< UMaterialInterface > | OverrideMaterial | Reference to our override material. | |
| TObjectPtr< UMaterialInterface > | OverrideMaterialEditor | EditorOnly version of the OverrideMaterial reference. | |
| TSoftObjectPtr< UMaterialInterface > | OverrideMaterialRef | Legacy editor soft reference that has been replaced by OverrideMaterialEditor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | FixupLegacySoftReference
(
UObject* OptionalOwner |
Resolve and fixup anylegacy soft pointer. | |
| UMaterialInterface * | This will return the cached override material pointer, if the override material is set, or nullptr otherwise. | ||
| bool | Serialize function as declared in the TStructOpsTypeTraits. | ||
| void | SetOverrideMaterial
(
UMaterialInterface* InMaterial, |
Setup the object directly. |