Navigation
API > API/Runtime > API/Runtime/Engine
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
| Type | Name | Description | |
|---|---|---|---|
FMaterialUpdateContext
(
uint32 Options, |
Initialization constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMaterial
(
UMaterial* Material |
Add a material that has been updated to the context. | |
| void | AddMaterialInstance
(
UMaterialInstance* Instance |
Adds a material instance that has been updated to the context. | |
| void | AddMaterialInterface
(
UMaterialInterface* Instance |
Adds a material interface that has been updated to the context. | |
| const TSet< UMaterialInterface * > & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| EOptions | Options controlling what is done before/after the material is updated. |