Navigation
API > API/Plugins > API/Plugins/DynamicMaterialEditor
A component which wraps a source and its inputs.
| Name | UDMMaterialStage |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/DynamicMaterial/Source/DynamicMaterialEditor/Public/Components/DMMaterialStage.h |
| Include Path | #include "Components/DMMaterialStage.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup="Material Designer",
Meta=(DisplayName="Material Designer Stage"))
class UDMMaterialStage : public UDMMaterialComponent
Inheritance Hierarchy
- FNotifyHook → UDMMaterialComponent → UDMMaterialStage
- UObjectBase → UObjectBaseUtility → UObject → UDMMaterialComponent → UDMMaterialStage
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDMMaterialStage() |
Components/DMMaterialStage.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FInputInitFunctionPtr | TFunction< void(UDMMaterialStage *, UDMMaterialStageInput *)> | Components/DMMaterialStage.h | |
| FSourceInitFunctionPtr | TFunction< void(UDMMaterialStage *, UDMMaterialStageSource *)> | Components/DMMaterialStage.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InputsPathToken | const FString | Components/DMMaterialStage.h | |
| SourcePathToken | const FString | Components/DMMaterialStage.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddInput
(
UDMMaterialStageInput* InNewInput |
Components/DMMaterialStage.h |
|
|
bool CanChangeSource() |
Components/DMMaterialStage.h |
|
|
InInputClass * ChangeInput
(
int32 InInputIdx, |
Components/DMMaterialStage.h | ||
UDMMaterialStageInput * ChangeInput
(
TSubclassOf< UDMMaterialStageInput > InInputClass, |
Components/DMMaterialStage.h |
|
|
InInputClass * ChangeInput
(
TSubclassOf< UDMMaterialStageInput > InInputSubclass, |
Components/DMMaterialStage.h | ||
UDMMaterialStageInput * ChangeInput
(
TSubclassOf< UDMMaterialStageInput > InInputClass, |
Creates a new input value and maps it to a specific source input. | Components/DMMaterialStage.h | |
UDMMaterialStageSource * ChangeInput_PreviousStage
(
int32 InInputIdx, |
Changes the input of the given input index to the output of the previous stage with the given material property. | Components/DMMaterialStage.h |
|
InSourceClass * ChangeSource
(
TSubclassOf< UDMMaterialStageSource > InSourceSubclass, |
Components/DMMaterialStage.h | ||
UDMMaterialStageSource * ChangeSource
(
TSubclassOf< UDMMaterialStageSource > InSourceClass, |
Components/DMMaterialStage.h | ||
InSourceClass * ChangeSource
(
FSourceInitFunctionPtr InPreInit |
Components/DMMaterialStage.h | ||
UDMMaterialStageSource * ChangeSource
(
TSubclassOf< UDMMaterialStageSource > InSourceClass |
Components/DMMaterialStage.h |
|
|
int32 FindIndex() |
Returns the index of this stage in the layer. | Components/DMMaterialStage.h |
|
const FDMMaterialStageConnectorChannel * FindInputChannel
(
UDMMaterialStageInput* InStageInput |
Components/DMMaterialStage.h | ||
void GenerateExpressions
(
const TSharedRef< FDMMaterialBuildState >& InBuildState |
Components/DMMaterialStage.h | ||
void GeneratePreviewMaterial
(
UMaterial* InPreviewMaterial |
Components/DMMaterialStage.h |
|
|
const TArray< FDMMaterialStageConnection > & GetInputConnectionMap () |
Determines what connects to what on this stage's Source. | Components/DMMaterialStage.h |
|
| Components/DMMaterialStage.h | |||
const TArray< UDMMaterialStageInput * > & GetInputs() |
Components/DMMaterialStage.h |
|
|
UDMMaterialLayerObject * GetLayer() |
Components/DMMaterialStage.h |
|
|
UDMMaterialStage * GetNextStage() |
Components/DMMaterialStage.h |
|
|
UDMMaterialStage * GetPreviousStage() |
Components/DMMaterialStage.h |
|
|
TMap< EDMMaterialPropertyType, UDMMaterialLayerObject * > GetPreviousStagesPropertyMap() |
Get the last layer for each property type from the previous stages. | Components/DMMaterialStage.h | |
TMap< EDMMaterialPropertyType, UDMMaterialLayerObject * > GetPropertyMap() |
Get the last layer for each property type from all stages. | Components/DMMaterialStage.h | |
UDMMaterialStageSource * GetSource() |
Components/DMMaterialStage.h |
|
|
EDMValueType GetSourceType
(
const FDMMaterialStageConnectorChannel& InChannel |
Components/DMMaterialStage.h |
|
|
virtual void InputUpdated
(
UDMMaterialStageInput* InInput, |
Called when one of the inputs triggers it's Update event. | Components/DMMaterialStage.h | |
virtual bool IsCompatibleWithNextStage
(
const UDMMaterialStage* InNextStage |
Components/DMMaterialStage.h |
|
|
virtual bool IsCompatibleWithPreviousStage
(
const UDMMaterialStage* InPreviousStage |
Returns true if the output of the previous stage can connect to this stage. | Components/DMMaterialStage.h |
|
bool IsEnabled() |
Components/DMMaterialStage.h |
|
|
bool IsInputMapped
(
int32 InputIndex |
Returns true if the given source's input is mapped to an input (or the previous stage). | Components/DMMaterialStage.h |
|
void RemoveAllInputs() |
Components/DMMaterialStage.h |
|
|
void RemoveInput
(
UDMMaterialStageInput* InInput |
Components/DMMaterialStage.h |
|
|
void RemoveUnusedInputs() |
Components/DMMaterialStage.h |
|
|
virtual void ResetInputConnectionMap() |
Verifies the entire input connection map. | Components/DMMaterialStage.h |
|
void SetCanChangeSource
(
bool bInCanChangeSource |
Components/DMMaterialStage.h |
|
|
bool SetEnabled
(
bool bInEnabled |
Components/DMMaterialStage.h |
|
|
void SetSource
(
UDMMaterialStageSource* InSource |
Components/DMMaterialStage.h |
|
|
void UpdateInputMap
(
int32 InInputIdx, |
Changes the input mapping. | Components/DMMaterialStage.h | |
bool VerifyAllInputMaps() |
Returns true if any changes were made | Components/DMMaterialStage.h |
|
bool VerifyInputMap
(
int32 InInputIdx |
Returns true if any changes were made | Components/DMMaterialStage.h |
|
Overridden from UDMMaterialComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FText GetComponentDescription() |
Components/DMMaterialStage.h | ||
virtual FSlateIcon GetComponentIcon() |
Components/DMMaterialStage.h | ||
virtual FString GetComponentPathComponent() |
Components/DMMaterialStage.h | ||
virtual UDMMaterialComponent * GetParentComponent() |
Components/DMMaterialStage.h | ||
virtual void PostEditorDuplicate
(
UDynamicMaterialModel* InMaterialModel, |
Components/DMMaterialStage.h | ||
virtual void Update
(
UDMMaterialComponent* InSource, |
Components/DMMaterialStage.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Modify
(
bool bInAlwaysMarkDirty |
Components/DMMaterialStage.h | ||
virtual void PostEditUndo() |
Components/DMMaterialStage.h |
Protected
Overridden from UDMMaterialComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Components/DMMaterialStage.h | |||
virtual UDMMaterialComponent * GetSubComponentByPath
(
FDMComponentPath& InPath, |
Components/DMMaterialStage.h | ||
virtual void OnComponentAdded() |
Components/DMMaterialStage.h | ||
virtual void OnComponentRemoved() |
Components/DMMaterialStage.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UDMMaterialStage * CreateMaterialStage
(
UDMMaterialLayerObject* InLayer |
Components/DMMaterialStage.h |
|