Navigation
API > API/Plugins > API/Plugins/DynamicMaterial > API/Plugins/DynamicMaterial/Components
Inheritance Hierarchy
- UObject
- FNotifyHook
- UDMMaterialComponent
- UDMMaterialLinkedComponent
- UDMMaterialValue
- UDMMaterialValueBool
- UDMMaterialValueColorAtlas
- UDMMaterialValueFloat
- UDMMaterialValueFloat1
- UDMMaterialValueFloat2
- UDMMaterialValueFloat3RGB
- UDMMaterialValueFloat3RPY
- UDMMaterialValueFloat3XYZ
- UDMMaterialValueFloat4
- UDMMaterialValueTexture
- UDMMaterialValueRenderTarget
References
| Module | DynamicMaterial |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterial/Public/Components/DMMaterialValue.h |
| Include | #include "Components/DMMaterialValue.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, Abstract, ClassGroup="Material Designer",
Meta=(DisplayName="Material Designer Value"))
class UDMMaterialValue :
public UDMMaterialLinkedComponent ,
public IDMJsonSerializable
Remarks
A value used in a material. Manages its own parameter.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bExposeParameter | ||
| bool | bLocal | True: The value is local to the stage it is used in. | |
| FName | CachedParameterName | ||
| void virtual GenerateExpression(const TSharedRef< IDMMaterialBuildStateInterface > &InBuildState) co... | IsWholeLayerValue | Returns the output index (channel WHOLE_CHANNEL) if this expression has pre-masked outputs. | |
| TObjectPtr< UDMMaterialParameter > | Parameter | The parameter name used to expose this value in a material. | |
| EDMValueType | Type | ||
| void virtual SetMIDParameter(UMaterialInstanceDynamic *InMID) const PURE_VIRTUAL(UDMMaterialStag... | Update |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UDMMaterialValue
(
EDMValueType InType |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if the property row generator should expose the value property. | ||
| void | Subclasses should implement a SetDefaultValue. | ||
| bool | CanResetToDefault
(
TSharedPtr< IPropertyHandle > InPropertyHandle |
||
| UDMMaterialValue * | CreateMaterialValue
(
UDynamicMaterialModel* InMaterialModel, |
Creates a new material value and initializes it with the given material model. | |
| FName | Generates an automatic path name based on the component hierarchy | ||
| FText | Combination of parameter name and type name. May be an automatically generated parameter name. | ||
| UDynamicMaterialModel * | Returns the owning material model (this object's Outer). | ||
| EDMMaterialParameterGroup | Determines the group this value's parameter will be in in the Material. | ||
| bool | |||
| EDMValueType | GetType () |
Returns the type of value as respresented by the possible base type enums. | |
| FText | GetTypeName () |
Uses the Value Definition Library to get the type name of the base enum type. | |
| bool | |||
| void | OnValueChanged
(
EDMUpdateType InUpdateType |
Called when the value changes to call this component's and the parent component's Update if possible. | |
| void | |||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& InPropertyChangedEvent |
||
| void | |||
| void | PostEditUndo () |
||
| void ResetDefaultValue() PURE_VIRTUAL(UDMMaterialValue bool | SetParameterName
(
FName InBaseName |
Resets to the default default value. | |
| void | SetShouldExposeParameter
(
bool bInExpose |
||
| void | UpdateCachedParameterName
(
bool bInResetName |
Updates the cached parameter name based on the Parameter object or the above method. |
Overridden from UDMMaterialComponent
| Type | Name | Description | |
|---|---|---|---|
| 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, |
Sets the parent component to the InParent parameter. | |
| void | PostLoad () |
Overridden from IDMJsonSerializable
| Type | Name | Description | |
|---|---|---|---|
| bool | JsonDeserialize
(
const TSharedPtr< FJsonValue >& InJsonValue |
||
| TSharedPtr< FJsonValue > | Non-editor implementation. |
Constants
| Name | Description |
|---|---|
| ParameterPathToken | |
| TypeClasses | |
| ValueName | Name that should be used by all child classes for its value property ("Value"). |