Navigation
API > API/Plugins > API/Plugins/DynamicMaterial > API/Plugins/DynamicMaterial/Components
Inheritance Hierarchy
- UObject
- FNotifyHook
- UDMMaterialComponent
- UDMMaterialComponentDynamic
- UDMMaterialValueDynamic
- UDMMaterialValueBoolDynamic
- UDMMaterialValueColorAtlasDynamic
- UDMMaterialValueFloat1Dynamic
- UDMMaterialValueFloat2Dynamic
- UDMMaterialValueFloat3RGBDynamic
- UDMMaterialValueFloat3RPYDynamic
- UDMMaterialValueFloat3XYZDynamic
- UDMMaterialValueFloat4Dynamic
- UDMMaterialValueRenderTargetDynamic
- UDMMaterialValueTextureDynamic
- UDMTextureUVDynamic
- UDMMaterialEffect
- UDMMaterialEffectFunction
- UDMMaterialEffectStack
- UDMMaterialLayerObject
- UDMMaterialLinkedComponent
- UDMMaterialParameter
- UDMMaterialValue
- UDMMaterialValueBool
- UDMMaterialValueColorAtlas
- UDMMaterialValueFloat
- UDMMaterialValueFloat1
- UDMMaterialValueFloat2
- UDMMaterialValueFloat3RGB
- UDMMaterialValueFloat3RPY
- UDMMaterialValueFloat3XYZ
- UDMMaterialValueFloat4
- UDMMaterialValueTexture
- UDMMaterialValueRenderTarget
- UDMTextureUV
- UDMMaterialProperty
- UDMMaterialSlot
- UDMMaterialStage
- UDMMaterialSubStage
- UDMMaterialStageSource
- UDMMaterialStageInput
- UDMMaterialStageInputSlot
- UDMMaterialStageInputTextureUV
- UDMMaterialStageInputThroughput
- UDMMaterialStageInputExpression
- UDMMaterialStageInputFunction
- UDMMaterialStageInputGradient
- UDMMaterialStageInputValue
- UDMMaterialStageThroughput
- UDMMaterialStageBlend
- UDMMaterialStageBlendContrastBase
- UDMMaterialStageBlendFunction
- UDMMaterialStageBlendAdd
- UDMMaterialStageBlendColor
- UDMMaterialStageBlendColorBurn
- UDMMaterialStageBlendColorDodge
- UDMMaterialStageBlendDarken
- UDMMaterialStageBlendDarkenColor
- UDMMaterialStageBlendDifference
- UDMMaterialStageBlendDivide
- UDMMaterialStageBlendExclusion
- UDMMaterialStageBlendHardLight
- UDMMaterialStageBlendHardMix
- UDMMaterialStageBlendHue
- UDMMaterialStageBlendLighten
- UDMMaterialStageBlendLightenColor
- UDMMaterialStageBlendLinearBurn
- UDMMaterialStageBlendLinearDodge
- UDMMaterialStageBlendLinearLight
- UDMMaterialStageBlendLuminosity
- UDMMaterialStageBlendMultiply
- UDMMaterialStageBlendNormal
- UDMMaterialStageBlendOverlay
- UDMMaterialStageBlendPinLight
- UDMMaterialStageBlendSaturation
- UDMMaterialStageBlendScreen
- UDMMaterialStageBlendSoftLight
- UDMMaterialStageBlendSubtract
- UDMMaterialStageBlendVividLight
- UDMMaterialStageExpression
- UDMMaterialStageExpressionMathBase
- UDMMaterialStageExpressionTextureCoordinate
- UDMMaterialStageExpressionTextureSampleBase
- UDMMaterialStageExpressionTextureSample
- UDMMaterialStageExpressionTextureSampleEdgeColor
- UDMMaterialStageFunction
- UDMMaterialStageGradient
- UDMMaterialStageGradientLinear
- UDMMaterialStageGradientRadial
- UDMMaterialStageThroughputLayerBlend
- UDMRenderTargetRenderer
- UDMRenderTargetWidgetRendererBase
- UDMRenderTargetTextRenderer
- UDMRenderTargetUMGWidgetRenderer
References
| Module | DynamicMaterial |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterial/Public/Components/DMMaterialComponent.h |
| Include | #include "Components/DMMaterialComponent.h" |
Syntax
UCLASS (MinimalAPI, Abstract, BlueprintType, Meta=(DisplayName="Material Designer Component"))
class UDMMaterialComponent :
public UObject,
public FNotifyHook
Remarks
The base class for all material components. Has a few useful things.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bComponentDirty | ||
| EDMComponentLifetimeState | ComponentState | ||
| TArray< FName > | EditableProperties | ||
| FOnLifetimeStateChanged | OnAdded | ||
| FOnLifetimeStateChanged | OnRemoved | ||
| FOnUpdate | OnUpdate |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanClean () |
Returns true if we can attempt to un-dirty a component. | |
| void | DoClean () |
Performs whatever operation is involved in cleaning this component. | |
| UDMMaterialComponent * | GetComponentByPath
(
const FString& InPath |
Searches the component for a specific component based on a path. | |
| UDMMaterialComponent * | GetComponentByPath
(
FDMComponentPath& InPath |
Searches the component for a specific component based on a path. | |
| UDMMaterialComponent * | GetComponentByPath
(
FDMComponentPath& InPath |
||
| FText | Returns a description of this class/object. | ||
| FSlateIcon | Returns a brush which indicates this component (type) | ||
| FString | Returns the complete path from the model to this component. | ||
| FString | Returns the part of the component representing just this object | ||
| void | GetComponentPathInternal
(
TArray< FString >& OutChildComponentPathComponents |
Allows this object to modify the child path when generating a path. | |
| EDMComponentLifetimeState | |||
| const TArray< FName > & | Returns a list of FNames for this component representing editable UPROPERTYs. | ||
| FOnLifetimeStateChanged::RegistrationType & | GetOnAdded () |
Event called when this component's state changes to Added. | |
| FOnLifetimeStateChanged::RegistrationType & | GetOnRemoved () |
Event called when this component's state changes to Removed. | |
| FOnUpdate::RegistrationType & | GetOnUpdate () |
Delegate called when this component's Update method is called. | |
| UObject * | GetOuterSafe () |
Does some checks to see whether the out is safe to retrieve and retrieves it. | |
| 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. | |
| InParentClass * | GetTypedParent
(
bool bInAllowSubclasses |
||
| UDMMaterialComponent * | GetTypedParent
(
UClass* InParentClass, |
Returns the first in the model hierarchy above this component of the given type. | |
| bool | Returns true if this component is in the Added or greater state. | ||
| bool | This is a kind of "useless" check, a component has always been created. | ||
| bool | Returns true if this component is in the Removed or greater state. | ||
| bool | Returns true if this component is in the Added state. | ||
| bool | Returns true if this component is in the original "Created" state and has not been moved onto Added or Removed. | ||
| bool | Returns true if this component is in the Removed state. | ||
| bool | Checks object flags and IsValid() | ||
| bool | IsPropertyVisible
(
FName InProperty |
Returns true the given UPROPERTY name is editable. | |
| void | Marks this component as needed to be cleaned. Preview materials updates, etc. | ||
| bool | Modify
(
bool bInAlwaysMarkDirty |
||
| bool | NeedsClean () |
Returns true if this component has been marked dirty. | |
| void | NotifyPreChange
(
FEditPropertyChain* InPropertyAboutToChange |
||
| void | Called when a component enters the Added state. | ||
| void | Called when a component enters the Removed state. | ||
| void | OnComponentStateChange
(
EDMComponentLifetimeState InNewState |
Called when a component state changes to call the enter state functions. | |
| void | PostEditorDuplicate
(
UDynamicMaterialModel* InMaterialModel, |
Called to ensure that the object hierarchy is correct. | |
| void | PostLoad () |
||
| void | PreventClean
(
double InDelayFor |
Called to prevent cleaning for InDelayFor. | |
| void | SetComponentState
(
EDMComponentLifetimeState InNewState |
Changes the component state to a new one. Should not be used to set it back to Created. | |
| 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 |
|---|---|
| FOnLifetimeStateChanged | |
| FOnUpdate |
Constants
| Name | Description |
|---|---|
| MinCleanTime | |
| MinTimeBeforeClean |