Navigation
API > API/Plugins > API/Plugins/DynamicMaterialEditor
A list of operations/inputs daisy chained together to produce an output.
| Name | UDMMaterialSlot |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/DynamicMaterial/Source/DynamicMaterialEditor/Public/Components/DMMaterialSlot.h |
| Include Path | #include "Components/DMMaterialSlot.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup="Material Designer",
Meta=(DisplayName="Material Designer Slot"))
class UDMMaterialSlot : public UDMMaterialComponent
Inheritance Hierarchy
- FNotifyHook → UDMMaterialComponent → UDMMaterialSlot
- UObjectBase → UObjectBaseUtility → UObject → UDMMaterialComponent → UDMMaterialSlot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDMMaterialSlot() |
Components/DMMaterialSlot.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| LayersPathToken | const FString | Components/DMMaterialSlot.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Layers | TArray< FDMMaterialLayer > | Components/DMMaterialSlot.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDMMaterialLayerObject * AddDefaultLayer
(
EDMMaterialPropertyType InMaterialProperty |
Adds the default layer type for this slot based on the given material property. | Components/DMMaterialSlot.h |
|
UDMMaterialLayerObject * AddLayer
(
EDMMaterialPropertyType InMaterialProperty, |
Adds the default layer (with specified base) based on the given material property. | Components/DMMaterialSlot.h |
|
UDMMaterialLayerObject * AddLayerWithMask
(
EDMMaterialPropertyType InMaterialProperty, |
Adds a new layer with the specified base and mask layers. | Components/DMMaterialSlot.h |
|
TArray< UDMMaterialLayerObject * > BP_GetLayers() |
Components/DMMaterialSlot.h |
|
|
bool CanRemoveLayer
(
UDMMaterialLayerObject* InLayer |
Can't be removed if it is the last remaining layer. | Components/DMMaterialSlot.h |
|
bool ChangeMaterialProperty
(
EDMMaterialPropertyType InPropertyFrom, |
Changes the material property of all matching layers to another. | Components/DMMaterialSlot.h |
|
UDMMaterialLayerObject * FindLayer
(
const UDMMaterialStage* InBaseOrMask |
Components/DMMaterialSlot.h |
|
|
void GenerateExpressions
(
const TSharedRef< FDMMaterialBuildState >& InBuildState |
Components/DMMaterialSlot.h | ||
TSet< EDMValueType > GetAllOutputConnectorTypes() |
Returns all possible output connector types. | Components/DMMaterialSlot.h |
|
FText GetDescription() |
Components/DMMaterialSlot.h |
|
|
int32 GetIndex() |
Returns the index of this slot in the model. | Components/DMMaterialSlot.h |
|
UDMMaterialLayerObject * GetLastLayerForMaterialProperty
(
EDMMaterialPropertyType InMaterialProperty |
Useful for determining output types. | Components/DMMaterialSlot.h |
|
UDMMaterialLayerObject * GetLayer
(
int32 InLayerIndex |
Components/DMMaterialSlot.h |
|
|
const TArray< TObjectPtr< UDMMaterialLayerObject > > & GetLayers() |
Components/DMMaterialSlot.h | ||
UDynamicMaterialModelEditorOnlyData * GetMaterialModelEditorOnlyData() |
Components/DMMaterialSlot.h |
|
|
FDMOnMaterialSlotConnectorsUpdated::RegistrationType & GetOnConnectorsUpdateDelegate() |
Called when the output connectors for this slot change. | Components/DMMaterialSlot.h | |
FDMOnMaterialSlotLayersUpdated::RegistrationType & GetOnLayersUpdateDelegate() |
Called whenever the properties of a layer change or when one is added, removed or moved. | Components/DMMaterialSlot.h | |
FDMOnMaterialSlotPropertiesUpdated::RegistrationType & GetOnPropertiesUpdateDelegate() |
Called when properties of this slot change. | Components/DMMaterialSlot.h | |
const TArray< EDMValueType > & GetOutputConnectorTypesForMaterialProperty
(
EDMMaterialPropertyType InMaterialProperty |
Returns the output types for the last layer with the given material property. | Components/DMMaterialSlot.h |
|
const TMap< TWeakObjectPtr< UDMMaterialSlot >, int32 > & GetSlotsReferencedBy() |
Return a map of the slots referencing this slot and how many times that reference exists. | Components/DMMaterialSlot.h | |
TArray< UDMMaterialSlot * > K2_GetSlotsReferencedBy() |
Returns an array of the slots referencing this slot. | Components/DMMaterialSlot.h |
|
bool MoveLayer
(
UDMMaterialLayerObject* InLayer, |
Components/DMMaterialSlot.h |
|
|
bool MoveLayerAfter
(
UDMMaterialLayerObject* InLayer, |
Components/DMMaterialSlot.h |
|
|
bool MoveLayerBefore
(
UDMMaterialLayerObject* InLayer, |
Components/DMMaterialSlot.h |
|
|
void OnPropertiesUpdated() |
Calls OnPropertiesUpdateDelegate when the property for this slot is updated. | Components/DMMaterialSlot.h | |
bool PasteLayer
(
UDMMaterialLayerObject* InLayer |
Adds the specified layer to the end of the layer list. | Components/DMMaterialSlot.h | |
bool ReferencedBySlot
(
UDMMaterialSlot* InOtherSlot |
Returns true if a new associated is created | Components/DMMaterialSlot.h | |
bool RemoveLayer
(
UDMMaterialLayerObject* InLayer |
Removes the layer, if possible. | Components/DMMaterialSlot.h |
|
void SetIndex
(
int32 InNewIndex |
Components/DMMaterialSlot.h | ||
bool SetLayerMaterialPropertyAndReplaceOthers
(
UDMMaterialLayerObject* InLayer, |
Sets the material property of the given layer and changes all other layers matching that property to a different one. | Components/DMMaterialSlot.h |
|
bool UnreferencedBySlot
(
UDMMaterialSlot* InOtherSlot |
Returns true if all associations have been removed | Components/DMMaterialSlot.h | |
void UpdateMaterialProperties() |
Components/DMMaterialSlot.h | ||
void UpdateOutputConnectorTypes() |
Components/DMMaterialSlot.h |
Overridden from UDMMaterialComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetComponentPathComponent() |
Components/DMMaterialSlot.h | ||
virtual UDMMaterialComponent * GetParentComponent() |
Components/DMMaterialSlot.h | ||
virtual void PostEditorDuplicate
(
UDynamicMaterialModel* InMaterialModel, |
Components/DMMaterialSlot.h | ||
virtual void Update
(
UDMMaterialComponent* InSource, |
Components/DMMaterialSlot.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Modify
(
bool bInAlwaysMarkDirty |
Components/DMMaterialSlot.h | ||
virtual void PostEditUndo() |
Components/DMMaterialSlot.h | ||
virtual void PostLoad() |
Components/DMMaterialSlot.h |
Protected
Overridden from UDMMaterialComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UDMMaterialComponent * GetSubComponentByPath
(
FDMComponentPath& InPath, |
Components/DMMaterialSlot.h | ||
virtual void OnComponentAdded() |
Components/DMMaterialSlot.h | ||
virtual void OnComponentRemoved() |
Components/DMMaterialSlot.h |