Navigation
API > API/Plugins > API/Plugins/DynamicMaterialEditor > API/Plugins/DynamicMaterialEditor/Components
Inheritance Hierarchy
- UObject
- FNotifyHook
- UDMMaterialComponent
- UDMMaterialLayerObject
References
| Module | DynamicMaterialEditor |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterialEditor/Public/Components/DMMaterialLayer.h |
| Include | #include "Components/DMMaterialLayer.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup="Material Designer",
Meta=(DisplayName="Material Designer Layer"))
class UDMMaterialLayerObject : public UDMMaterialComponent
Remarks
A collection of stages.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnabled | ||
| bool | bLinkedUVs | ||
| TObjectPtr< UDMMaterialEffectStack > | EffectStack | ||
| FText | LayerName | ||
| EDMMaterialPropertyType | MaterialProperty | ||
| TArray< TObjectPtr< UDMMaterialStage > > | Stages |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ApplyEffects
(
const TSharedRef< FDMMaterialBuildState >& InBuildState, |
Apply the effects from this layer's effect stack to the given expressions based on the type of stage. | |
| bool | AreAllStagesEnabled
(
EDMMaterialLayerStage InStageScope |
Checks if both stages are enabled and valid | |
| bool | AreAllStagesValid
(
EDMMaterialLayerStage InStageScope |
||
| bool | CanMoveLayerAbove
(
UDMMaterialLayerObject* InLayer |
||
| bool | CanMoveLayerBelow
(
UDMMaterialLayerObject* InLayer |
||
| UDMMaterialLayerObject * | CreateLayer
(
UDMMaterialSlot* InSlot, |
||
| UDMMaterialLayerObject * | DeserializeFromString
(
UDMMaterialSlot* InOuter, |
||
| int32 | FindIndex () |
Find the index of this layer in the slot. | |
| void | ForEachEnabledStage
(
EDMMaterialLayerStage InStageScope, |
Iterate over only the enabled stages. | |
| void | ForEachValidStage
(
EDMMaterialLayerStage InStageScope, |
Iterate over all the valid stages, whether they are enabled or not. | |
| void | GenerateExpressions
(
const TSharedRef< FDMMaterialBuildState >& InBuildState |
||
| const TArray< TObjectPtr< UDMMaterialStage > > & | GetAllStages () |
||
| UDMMaterialEffectStack * | |||
| UDMMaterialStage * | GetFirstEnabledStage
(
EDMMaterialLayerStage InStageScope |
Checks for the first enabled and valid stage. | |
| UDMMaterialStage * | GetFirstValidStage
(
EDMMaterialLayerStage InStageScope |
||
| UDMMaterialStage * | GetLastEnabledStage
(
EDMMaterialLayerStage InStageScope |
Checks for the last enabled and valid stage. | |
| UDMMaterialStage * | GetLastValidStage
(
EDMMaterialLayerStage InStageScope |
||
| const FText & | GetLayerName () |
||
| EDMMaterialPropertyType | |||
| UDMMaterialLayerObject * | GetNextLayer
(
EDMMaterialPropertyType InUsingProperty, |
||
| UDMMaterialLayerObject * | GetPreviousLayer
(
EDMMaterialPropertyType InUsingProperty, |
||
| UDMMaterialSlot * | GetSlot () |
||
| UDMMaterialStage * | GetStage
(
EDMMaterialLayerStage InStageType, |
||
| TArray< UDMMaterialStage * > | GetStages
(
EDMMaterialLayerStage InStageType, |
||
| EDMMaterialLayerStage | GetStageType
(
const UDMMaterialStage* InStage |
||
| bool | HasValidStage
(
const UDMMaterialStage* InStage |
||
| bool | HasValidStageOfType
(
EDMMaterialLayerStage InStageScope |
||
| bool | IsEnabled () |
||
| bool | IsStageEnabled
(
EDMMaterialLayerStage InStageScope |
||
| bool | Texture UV Link means that all stages use the same Texture UV from the base stage, if available. | ||
| void | PostEditUndo () |
||
| FString | Used for copy+pasting. | ||
| bool | SetEnabled
(
bool bInIsEnabled |
||
| void | SetLayerName
(
const FText& InName |
||
| bool | SetMaterialProperty
(
EDMMaterialPropertyType InMaterialProperty |
||
| bool | SetStage
(
EDMMaterialLayerStage InStageType, |
Replace the specified stage. | |
| bool | SetTextureUVLinkEnabled
(
bool bInValue |
Texture UV Link means that all stages use the same Texture UV from the base stage, if available. | |
| bool | Texture UV Link means that all stages use the same Texture UV from the base stage, if available. |
Overridden from UDMMaterialComponent
| Type | Name | Description | |
|---|---|---|---|
| FText | Returns a description of this class/object. | ||
| FString | Returns the part of the component representing just this object | ||
| UDMMaterialComponent * | Returns the component that owns this component in the model hierarchy. | ||
| UDMMaterialComponent * | GetSubComponentByPath
(
FDMComponentPath& InPath, |
Searches the component for a specific component based on a path. | |
| bool | Modify
(
bool bInAlwaysMarkDirty |
||
| void | Called when a component enters the Added state. | ||
| void | Called when a component enters the Removed state. | ||
| void | PostEditorDuplicate
(
UDynamicMaterialModel* InMaterialModel, |
Called to ensure that the object hierarchy is correct. | |
| void | Update
(
UDMMaterialComponent* InSource, |
Event that is triggered when this component, or a sub-component, changes to trigger other updates in the model. |
Typedefs
| Name | Description |
|---|---|
| FStageCallbackFunc |
Constants
| Name | Description |
|---|---|
| BasePathToken | |
| EffectStackPathToken | |
| MaskPathToken | |
| StagesPathToken |