Navigation
API > API/Plugins > API/Plugins/DynamicMaterial > API/Plugins/DynamicMaterial/Model
Inheritance Hierarchy
- UObject
- UDynamicMaterialModel
References
| Module | DynamicMaterial |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterial/Public/Model/DynamicMaterialModel.h |
| Include | #include "Model/DynamicMaterialModel.h" |
Syntax
UCLASS (ClassGroup="Material Designer", DefaultToInstanced, BlueprintType,
Meta=(DisplayThumbnail="true"))
class UDynamicMaterialModel : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCreateMaterialPackage | ||
| TEnumAsByte< EBlendMode > | BlendMode | These properties used to exist on the editor-only subclass of this model. | |
| TObjectPtr< UMaterial > | DynamicMaterial | ||
| TObjectPtr< UDynamicMaterialInstance > | DynamicMaterialInstance | ||
| TScriptInterface< IDynamicMaterialModelEditorOnlyDataInterface > | EditorOnlyDataSI | ||
| TArray< TObjectPtr< UMaterialExpression > > | Expressions | ||
| TObjectPtr< UDMMaterialParameter > | GlobalOpacityParameter | ||
| TObjectPtr< UDMMaterialValueFloat1 > | GlobalOpacityValue | ||
| TMap< FName, TWeakObjectPtr< UDMMaterialParameter > > | ParameterMap | ||
| TMap< EDMMaterialPropertyType, TObjectPtr< UObject > > | Properties | ||
| TMap< EDMMaterialPropertyType, TObjectPtr< UObject > > | PropertySlotMap | ||
| EDMMaterialShadingModel | ShadingModel | ||
| TArray< TObjectPtr< UObject > > | Slots | ||
| TArray< TObjectPtr< UDMMaterialValue > > | Values |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UDMMaterialValue * | AddValue
(
EDMValueType InType |
||
| TScriptInterface< IDynamicMaterialModelEditorOnlyDataInterface > | |||
| bool | ConditionalFreeParameter
(
UDMMaterialParameter* InParameter |
Removes this specific object from the parameter map if the name is in use by a different parameter. | |
| UDMMaterialParameter * | CreateUniqueParameter
(
FName InBaseName |
Creates a new parameter and assigns it a unique name. | |
| FName | CreateUniqueParameterName
(
FName InBaseName |
||
| void | |||
| void | FreeParameter
(
UDMMaterialParameter* InParameter |
Removes parameter by the name assigned to this parameter object. | |
| UDMMaterialComponent * | GetComponentByPath
(
const FString& InPath |
||
| UDMMaterialComponent * | GetComponentByPath
(
FDMComponentPath& InPath |
||
| UDMMaterialComponent * | GetComponentByPath
(
FDMComponentPath& InPath |
||
| UDynamicMaterialInstance * | |||
| IDynamicMaterialModelEditorOnlyDataInterface * | |||
| UMaterial * | |||
| UDMMaterialValueFloat1 * | |||
| UDMMaterialValue * | GetValueByIndex
(
int32 Index |
||
| UDMMaterialValue * | GetValueByName
(
FName InName |
||
| const TArray< UDMMaterialValue * > & | GetValues () |
||
| bool | HasParameterName
(
FName InParameterName |
||
| bool | IsModelValid () |
||
| void | PostDuplicate
(
bool bDuplicateForPIE |
||
| void | |||
| void | |||
| void | PostEditUndo () |
||
| void | PostLoad () |
||
| void | |||
| void | RemoveValueByIndex
(
int32 Index |
||
| void | RemoveValueByName
(
FName InName |
||
| void | RenameParameter
(
UDMMaterialParameter* InParameter, |
Updates the name on an existing parameter. | |
| void | ResetData () |
||
| void | SetDynamicMaterialInstance
(
UDynamicMaterialInstance* InDynamicMaterialInstance |
Constants
| Name | Description |
|---|---|
| GlobalOpacityParameterName | |
| ParametersPathToken | |
| ValuesPathToken |