Navigation
API > API/Plugins > API/Plugins/DynamicMaterialEditor > API/Plugins/DynamicMaterialEditor/Model
Inheritance Hierarchy
- IDMMaterialBuildStateInterface
- TSharedFromThis< FDMMaterialBuildState >
- FDMMaterialBuildState
References
| Module | DynamicMaterialEditor |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterialEditor/Public/Model/DMMaterialBuildState.h |
| Include | #include "Model/DMMaterialBuildState.h" |
Syntax
struct FDMMaterialBuildState :
public IDMMaterialBuildStateInterface ,
public TSharedFromThis< FDMMaterialBuildState >
Remarks
BuildState is a class that stores the current state of a material that is being built. It stores useful lists of UMaterialExpressions relating to various object within the builder, such a Stages or Sources. It is an entirely transient object. It is not meant to be saved outside of the material building processs. It also provides some helper functions for creating UMaterialExpressions.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDMMaterialBuildState
(
UMaterial* InDynamicMaterial, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddLayerExpressions
(
const UDMMaterialLayerObject* InLayer, |
||
| void | AddSlotExpressions
(
const UDMMaterialSlot* InSlot, |
||
| void | AddSlotPropertyExpressions
(
const UDMMaterialSlot* InSlot, |
||
| void | AddStageExpressions
(
const UDMMaterialStage* InStage, |
||
| void | AddStageSourceExpressions
(
const UDMMaterialStageSource* InStageSource, |
||
| const UDMMaterialProperty * | The current material property being generated for. | ||
| UMaterialExpression * | GetGlobalExpression
(
FName InName |
Global expression. | |
| UMaterialExpression * | GetLastLayerExpression
(
const UDMMaterialLayerObject* InLayer |
||
| UMaterialExpression * | GetLastSlotExpression
(
const UDMMaterialSlot* InSlot |
||
| UMaterialExpression * | GetLastSlotPropertyExpression
(
const UDMMaterialSlot* InSlot, |
||
| UMaterialExpression * | GetLastStageExpression
(
const UDMMaterialStage* InStage |
||
| UMaterialExpression * | GetLastStageSourceExpression
(
const UDMMaterialStageSource* InStageSource |
||
| const TArray< UMaterialExpression * > & | GetLayerExpressions
(
const UDMMaterialLayerObject* InLayer |
||
| const TMap< const UDMMaterialLayerObject *, TArray< UMaterialExpression * > > & | GetLayerMap () |
||
| TArray< const UDMMaterialLayerObject * > | GetLayers () |
||
| FExpressionInput * | GetMaterialProperty
(
EDMMaterialPropertyType InProperty |
Returns the FExpressionInput for the given material property on the material's editor only data. | |
| UObject * | Whether the build state is building a full material or a preview. | ||
| const TArray< UMaterialExpression * > & | GetSlotExpressions
(
const UDMMaterialSlot* InSlot |
||
| const TMap< const UDMMaterialSlot *, TArray< UMaterialExpression * > > & | GetSlotMap () |
||
| const TMap< EDMMaterialPropertyType, TArray< UMaterialExpression * > > & | GetSlotPropertyExpressions
(
const UDMMaterialSlot* InSlot |
||
| TArray< const UDMMaterialSlot * > | GetSlots () |
||
| const TArray< UMaterialExpression * > & | GetStageExpressions
(
const UDMMaterialStage* InStage |
||
| const TMap< const UDMMaterialStage *, TArray< UMaterialExpression * > > & | GetStageMap () |
||
| TArray< const UDMMaterialStage * > | GetStages () |
||
| const TArray< UMaterialExpression * > & | GetStageSourceExpressions
(
const UDMMaterialStageSource* InStageSource |
||
| const TMap< const UDMMaterialStageSource *, TArray< UMaterialExpression * > > & | |||
| TArray< const UDMMaterialStageSource * > | |||
| bool | HasLayer
(
const UDMMaterialLayerObject* InLayer |
Layers. | |
| bool | HasSlot
(
const UDMMaterialSlot* InSlot |
Slots. | |
| bool | HasSlotProperties
(
const UDMMaterialSlot* InSlot |
||
| bool | HasStage
(
const UDMMaterialStage* InStage |
Stages. | |
| bool | HasStageSource
(
const UDMMaterialStageSource* InStageSource |
Stage Sources. | |
| bool | If ignoring UVs is on, UV nodes will not be processed. Useful for preview materials. | ||
| void | SetCurrentMaterialProperty
(
const UDMMaterialProperty* InProperty |
||
| void | SetGlobalExpression
(
FName InName, |
||
| void | SetIgnoreUVs () |
||
| void | SetPreviewObject
(
UObject* InObject |
||
| bool | Whether assets can potentially be dirtied by the build process. |
Overridden from IDMMaterialBuildStateInterface
| Type | Name | Description | |
|---|---|---|---|
| void | AddOtherExpressions
(
const TArray< UMaterialExpression* >& InOtherExpressions |
Other expression. | |
| void | AddValueExpressions
(
const UDMMaterialValue* InValue, |
||
| IDMMaterialBuildUtilsInterface & | A handy set of tools for creating material expressions. | ||
| UMaterial * | Returns the dynamic material being built. | ||
| UMaterialExpression * | GetLastValueExpression
(
const UDMMaterialValue* InValue |
||
| UDynamicMaterialModel * | Returns the material model for the material being build. | ||
| const TSet< UMaterialExpression * > & | |||
| const TArray< UMaterialExpression * > & | GetValueExpressions
(
const UDMMaterialValue* InValue |
||
| const TMap< const UDMMaterialValue *, TArray< UMaterialExpression * > > & | GetValueMap () |
||
| TArray< const UDMMaterialValue * > | GetValues () |
||
| bool | HasValue
(
const UDMMaterialValue* InValue |
Values. |