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 | AddCallbackExpressions
(
const UDMMaterialStageSource* InCallback, |
||
| 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 TArray< UDMMaterialStageSource * > & | GetCallbackExpressions
(
const UDMMaterialStageSource* InCallback |
||
| const TMap< const UDMMaterialStageSource *, TArray< UDMMaterialStageSource * > > & | |||
| TArray< const UDMMaterialStageSource * > | GetCallbacks () |
||
| 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 |
||
| 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 | HasCallback
(
const UDMMaterialStageSource* InCallback |
Callbacks. | |
| 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 | |||
| bool | |||
| void | SetIgnoreUVs () |
||
| void | |||
| bool |
Overridden from IDMMaterialBuildStateInterface
| Type | Name | Description | |
|---|---|---|---|
| void | AddOtherExpressions
(
const TArray< UMaterialExpression* >& InOtherExpressions |
Other expression. | |
| void | AddValueExpressions
(
const UDMMaterialValue* InValue, |
||
| IDMMaterialBuildUtilsInterface & | |||
| UMaterial * | |||
| UMaterialExpression * | GetLastValueExpression
(
const UDMMaterialValue* InValue |
||
| UDynamicMaterialModel * | |||
| 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. |