Navigation
API > API/Editor > API/Editor/MaterialEditor
Inheritance Hierarchy
- FMaterial
- FMaterialResource
- FMaterialResourceStats
References
| Module | MaterialEditor |
| Header | /Engine/Source/Editor/MaterialEditor/Public/MaterialStatsCommon.h |
| Include | #include "MaterialStatsCommon.h" |
Syntax
class FMaterialResourceStats : public FMaterialResource
Remarks
Custom resource material class used to mark the resource as used for shader stats extraction
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UMaterial * | GetMaterial () |
Overridden from FMaterial
| Type | Name | Description | |
|---|---|---|---|
| bool | IsPersistent () |
Should shaders compiled for this material be saved to disk? | |
| bool | IsPreview () |
Use preview settings when compiling material. Used to avoid culling nodes behind landscape weights. | |
| bool | Material resource stats never requires a synchronous compilation, otherwise opening up empty (newly created) material instance will block compiling default mat's shaders. | ||
| void | SetupExtraCompilationSettings
(
const EShaderPlatform Platform, |
This will enable shader source extraction and pass paths to (eventual) offline shader compilers |