FMaterialUpdateContext

This class takes care of all of the details you need to worry about when modifying a [UMaterial](API\Runtime\Engine\Materials\UMaterial) on the main thread.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Syntax

class FMaterialUpdateContext

Remarks

This class takes care of all of the details you need to worry about when modifying a UMaterial on the main thread. This class should always be used when doing so!

Constructors

Name Description

Public function

FMaterialUpdateContext

(
    uint32 Options,
    EShaderPlatform InShaderPlatform
)

Initialization constructor.

Destructors

Name Description

Public function

~FMaterialUpdateContext()

Destructor.

Functions

Name Description

Public function

void

 

AddMaterial

(
    UMaterial* Material
)

Add a material that has been updated to the context.

Public function

void

 

AddMaterialInstance

(
    UMaterialInstance* Instance
)

Adds a material instance that has been updated to the context.

Public function

void

 

AddMaterialInterface

(
    UMaterialInterface* Instance
)

Adds a material interface that has been updated to the context.

Classes

Name

Description

Public struct

EOptions

Options controlling what is done before/after the material is updated.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss