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

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.

References

Module

Engine

Header

Runtime/Engine/Public/MaterialShared.h

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