This class takes care of all of the details you need to worry about when modifying a UMaterial on the main thread. 更多...
#include <MaterialShared.h>
类 | |
| struct | EOptions |
| Options controlling what is done before/after the material is updated. 更多... | |
Public 成员函数 | |
| ENGINE_API void | AddMaterial (UMaterial *Material) |
| Add a material that has been updated to the context. | |
| ENGINE_API void | AddMaterialInstance (UMaterialInstance *Instance) |
| Adds a material instance that has been updated to the context. | |
| ENGINE_API void | AddMaterialInterface (UMaterialInterface *Instance) |
| Adds a material interface that has been updated to the context. | |
| ENGINE_API | FMaterialUpdateContext (uint32 Options=EOptions::Default, EShaderPlatform InShaderPlatform=GMaxRHIShaderPlatform) |
| Initialization constructor. | |
| ENGINE_API | ~FMaterialUpdateContext () |
| Destructor. | |
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!