Navigation
API > API/Plugins > API/Plugins/DynamicMaterialEditor > API/Plugins/DynamicMaterialEditor/Components
Inheritance Hierarchy
- UObject
- FNotifyHook
- UDMMaterialComponent
- UDMMaterialSlot
References
| Module | DynamicMaterialEditor |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterialEditor/Public/Components/DMMaterialSlot.h |
| Include | #include "Components/DMMaterialSlot.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup="Material Designer",
Meta=(DisplayName="Material Designer Slot"))
class UDMMaterialSlot : public UDMMaterialComponent
Remarks
A list of operations/inputs daisy chained together to produce an output.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | Index | ||
| TArray< TObjectPtr< UDMMaterialLayerObject > > | LayerObjects | ||
| FDMOnMaterialSlotConnectorsUpdated | OnConnectorsUpdateDelegate | ||
| FDMOnMaterialSlotLayersUpdated | OnLayersUpdateDelegate | ||
| FDMOnMaterialSlotPropertiesUpdated | OnPropertiesUpdateDelegate | ||
| TMap< EDMMaterialPropertyType, FDMMaterialSlotOutputConnectorTypes > | OutputConnectorTypes | ||
| TMap< TWeakObjectPtr< UDMMaterialSlot >, int32 > | SlotsReferencedBy |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UDMMaterialLayerObject * | AddDefaultLayer
(
EDMMaterialPropertyType InMaterialProperty |
Adds the default layer type for this slot based on the given material property. | |
| UDMMaterialLayerObject * | AddLayer
(
EDMMaterialPropertyType InMaterialProperty, |
Adds the default layer (with specified base) based on the given material property. | |
| UDMMaterialLayerObject * | AddLayerWithMask
(
EDMMaterialPropertyType InMaterialProperty, |
Adds a new layer with the specified base and mask layers. | |
| TArray< UDMMaterialLayerObject * > | BP_GetLayers () |
||
| bool | CanRemoveLayer
(
UDMMaterialLayerObject* InLayer |
Can't be removed if it is the last remaining layer. | |
| bool | ChangeMaterialProperty
(
EDMMaterialPropertyType InPropertyFrom, |
Changes the material property of all matching layers to another. | |
| UDMMaterialLayerObject * | FindLayer
(
const UDMMaterialStage* InBaseOrMask |
||
| void | GenerateExpressions
(
const TSharedRef< FDMMaterialBuildState >& InBuildState |
||
| TSet< EDMValueType > | Returns all possible output connector types. | ||
| FText | |||
| int32 | GetIndex () |
Returns the index of this slot in the model. | |
| UDMMaterialLayerObject * | GetLastLayerForMaterialProperty
(
EDMMaterialPropertyType InMaterialProperty |
Useful for determining output types. | |
| UDMMaterialLayerObject * | |||
| const TArray< TObjectPtr< UDMMaterialLayerObject > > & | GetLayers () |
||
| UDynamicMaterialModelEditorOnlyData * | |||
| FDMOnMaterialSlotConnectorsUpdated::RegistrationType & | Called when the output connectors for this slot change. | ||
| FDMOnMaterialSlotLayersUpdated::RegistrationType & | Called whenever the properties of a layer change or when one is added, removed or moved. | ||
| FDMOnMaterialSlotPropertiesUpdated::RegistrationType & | Called when properties of this slot change. | ||
| const TArray< EDMValueType > & | GetOutputConnectorTypesForMaterialProperty
(
EDMMaterialPropertyType InMaterialProperty |
Returns the output types for the last layer with the given material property. | |
| const TMap< TWeakObjectPtr< UDMMaterialSlot >, int32 > & | Return a map of the slots referencing this slot and how many times that reference exists. | ||
| TArray< UDMMaterialSlot * > | Returns an array of the slots referencing this slot. | ||
| bool | MoveLayer
(
UDMMaterialLayerObject* InLayer, |
||
| bool | MoveLayerAfter
(
UDMMaterialLayerObject* InLayer, |
||
| bool | MoveLayerBefore
(
UDMMaterialLayerObject* InLayer, |
||
| void | Calls OnPropertiesUpdateDelegate when the property for this slot is updated. | ||
| bool | PasteLayer
(
UDMMaterialLayerObject* InLayer |
Adds the specified layer to the end of the layer list. | |
| void | PostEditUndo () |
||
| bool | ReferencedBySlot
(
UDMMaterialSlot* InOtherSlot |
Returns true if a new associated is created | |
| bool | RemoveLayer
(
UDMMaterialLayerObject* InLayer |
Removes the layer, if possible. | |
| void | |||
| bool | SetLayerMaterialPropertyAndReplaceOthers
(
UDMMaterialLayerObject* InLayer, |
Sets the material property of the given layer and changes all other layers matching that property to a different one. | |
| bool | UnreferencedBySlot
(
UDMMaterialSlot* InOtherSlot |
Returns true if all associations have been removed | |
| void | |||
| void |
Overridden from UDMMaterialComponent
| Type | Name | Description | |
|---|---|---|---|
| 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 | PostLoad () |
||
| void | Update
(
UDMMaterialComponent* InSource, |
Event that is triggered when this component, or a sub-component, changes to trigger other updates in the model. |
Constants
| Name | Description |
|---|---|
| LayersPathToken |