Navigation
API > API/Plugins > API/Plugins/DynamicMaterialEditor
A collection of stages.
| Name | UDMMaterialLayerObject |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/DynamicMaterial/Source/DynamicMaterialEditor/Public/Components/DMMaterialLayer.h |
| Include Path | #include "Components/DMMaterialLayer.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup="Material Designer",
Meta=(DisplayName="Material Designer Layer"))
class UDMMaterialLayerObject : public UDMMaterialComponent
Inheritance Hierarchy
- FNotifyHook → UDMMaterialComponent → UDMMaterialLayerObject
- UObjectBase → UObjectBaseUtility → UObject → UDMMaterialComponent → UDMMaterialLayerObject
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDMMaterialLayerObject() |
Components/DMMaterialLayer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FStageCallbackFunc | TFunctionRef< void(UDMMaterialStage *)> | Components/DMMaterialLayer.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BasePathToken | const FString | Components/DMMaterialLayer.h | |
| EffectStackPathToken | const FString | Components/DMMaterialLayer.h | |
| MaskPathToken | const FString | Components/DMMaterialLayer.h | |
| StagesPathToken | const FString | Components/DMMaterialLayer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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. | Components/DMMaterialLayer.h | |
bool AreAllStagesEnabled
(
EDMMaterialLayerStage InStageScope |
Checks if both stages are enabled and valid | Components/DMMaterialLayer.h |
|
bool AreAllStagesValid
(
EDMMaterialLayerStage InStageScope |
Components/DMMaterialLayer.h |
|
|
bool CanMoveLayerAbove
(
UDMMaterialLayerObject* InLayer |
Components/DMMaterialLayer.h |
|
|
bool CanMoveLayerBelow
(
UDMMaterialLayerObject* InLayer |
Components/DMMaterialLayer.h |
|
|
int32 FindIndex() |
Find the index of this layer in the slot. | Components/DMMaterialLayer.h |
|
void ForEachEnabledStage
(
EDMMaterialLayerStage InStageScope, |
Iterate over only the enabled stages. | Components/DMMaterialLayer.h | |
void ForEachValidStage
(
EDMMaterialLayerStage InStageScope, |
Iterate over all the valid stages, whether they are enabled or not. | Components/DMMaterialLayer.h | |
void GenerateExpressions
(
const TSharedRef< FDMMaterialBuildState >& InBuildState |
Components/DMMaterialLayer.h | ||
const TArray< TObjectPtr< UDMMaterialStage > > & GetAllStages() |
Components/DMMaterialLayer.h | ||
UDMMaterialEffectStack * GetEffectStack() |
Components/DMMaterialLayer.h |
|
|
UDMMaterialStage * GetFirstEnabledStage
(
EDMMaterialLayerStage InStageScope |
Checks for the first enabled and valid stage. | Components/DMMaterialLayer.h |
|
UDMMaterialStage * GetFirstValidStage
(
EDMMaterialLayerStage InStageScope |
Components/DMMaterialLayer.h |
|
|
UDMMaterialStage * GetLastEnabledStage
(
EDMMaterialLayerStage InStageScope |
Checks for the last enabled and valid stage. | Components/DMMaterialLayer.h |
|
UDMMaterialStage * GetLastValidStage
(
EDMMaterialLayerStage InStageScope |
Components/DMMaterialLayer.h |
|
|
const FText & GetLayerName() |
Components/DMMaterialLayer.h |
|
|
EDMMaterialPropertyType GetMaterialProperty() |
Components/DMMaterialLayer.h |
|
|
UDMMaterialLayerObject * GetNextLayer
(
EDMMaterialPropertyType InUsingProperty, |
Components/DMMaterialLayer.h |
|
|
UDMMaterialLayerObject * GetPreviousLayer
(
EDMMaterialPropertyType InUsingProperty, |
Components/DMMaterialLayer.h |
|
|
UDMMaterialSlot * GetSlot() |
Components/DMMaterialLayer.h |
|
|
UDMMaterialStage * GetStage
(
EDMMaterialLayerStage InStageType, |
Components/DMMaterialLayer.h |
|
|
TArray< UDMMaterialStage * > GetStages
(
EDMMaterialLayerStage InStageType, |
Components/DMMaterialLayer.h |
|
|
EDMMaterialLayerStage GetStageType
(
const UDMMaterialStage* InStage |
Components/DMMaterialLayer.h |
|
|
bool HasValidStage
(
const UDMMaterialStage* InStage |
Components/DMMaterialLayer.h |
|
|
bool HasValidStageOfType
(
EDMMaterialLayerStage InStageScope |
Components/DMMaterialLayer.h |
|
|
bool IsEnabled() |
Components/DMMaterialLayer.h |
|
|
bool IsStageEnabled
(
EDMMaterialLayerStage InStageScope |
Components/DMMaterialLayer.h |
|
|
bool IsTextureUVLinkEnabled() |
Texture UV Link means that all stages use the same Texture UV from the base stage, if available. | Components/DMMaterialLayer.h |
|
FString SerializeToString() |
Used for copy+pasting. | Components/DMMaterialLayer.h | |
bool SetEnabled
(
bool bInIsEnabled |
Components/DMMaterialLayer.h |
|
|
void SetLayerName
(
const FText& InName |
Components/DMMaterialLayer.h |
|
|
bool SetMaterialProperty
(
EDMMaterialPropertyType InMaterialProperty |
Components/DMMaterialLayer.h |
|
|
bool SetStage
(
EDMMaterialLayerStage InStageType, |
Replace the specified stage. | Components/DMMaterialLayer.h |
|
bool SetTextureUVLinkEnabled
(
bool bInValue |
Texture UV Link means that all stages use the same Texture UV from the base stage, if available. | Components/DMMaterialLayer.h |
|
bool ToggleTextureUVLinkEnabled() |
Texture UV Link means that all stages use the same Texture UV from the base stage, if available. | Components/DMMaterialLayer.h |
|
Overridden from UDMMaterialComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FText GetComponentDescription() |
Components/DMMaterialLayer.h | ||
virtual FString GetComponentPathComponent() |
Components/DMMaterialLayer.h | ||
virtual UDMMaterialComponent * GetParentComponent() |
Components/DMMaterialLayer.h | ||
virtual void PostEditorDuplicate
(
UDynamicMaterialModel* InMaterialModel, |
Components/DMMaterialLayer.h | ||
virtual void Update
(
UDMMaterialComponent* InSource, |
Components/DMMaterialLayer.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Modify
(
bool bInAlwaysMarkDirty |
Components/DMMaterialLayer.h | ||
virtual void PostEditUndo() |
Components/DMMaterialLayer.h |
Protected
Overridden from UDMMaterialComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UDMMaterialComponent * GetSubComponentByPath
(
FDMComponentPath& InPath, |
Components/DMMaterialLayer.h | ||
virtual void OnComponentAdded() |
Components/DMMaterialLayer.h | ||
virtual void OnComponentRemoved() |
Components/DMMaterialLayer.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UDMMaterialLayerObject * CreateLayer
(
UDMMaterialSlot* InSlot, |
Components/DMMaterialLayer.h |
|
|
static UDMMaterialLayerObject * DeserializeFromString
(
UDMMaterialSlot* InOuter, |
Components/DMMaterialLayer.h |