FMaterialPropertyHelpers

Windows
MacOS
Linux

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/MaterialPropertyHelpers.h

Include

#include "MaterialPropertyHelpers.h"

Syntax

class FMaterialPropertyHelpers

Functions

Name Description

Public function Static

void

 

CopyMaterialToInstance

(
    UMaterialInstanceConstant* Chi...,
    TArray< struct FEditorParameterGrou...
)

Public function Static

bool

 

FilterLayerAssets

(
    const FAssetData& InAssetData,
    FMaterialLayersFunctions* Laye...,
    EMaterialParameterAssociation Mater...,
    int32 Index
)

Public function Static

TArray< clas...

 

GetAssetFactories

(
    EMaterialParameterAssociation Asset...
)

Public function Static

FText

 

GetParameterExpressionDescription

(
    UDEditorParameterValue* Parame...,
    UObject* MaterialEditorInstanc...
)

Gets the expression description of this parameter from the base material

Public function Static

FEditorParam...

 

GetParameterGroup

(
    UMaterial* InMaterial,
    FName& ParameterGroup,
    TArray< struct FEditorParameterGrou...
)

Returns group for parameter. Creates one if needed.

Public function Static

FText

 

GetParameterTooltip

(
    UDEditorParameterValue* Parame...,
    UObject* MaterialEditorInstanc...
)

Public function Static

void

 

GetVectorChannelMaskComboBoxStrings

(
    TArray< TSharedPtr< FString >>& Ou...,
    TArray< TSharedPtr< class SToolTip ...,
    TArray< bool >& OutRestrictedItems
)

Public function Static

FString

 

GetVectorChannelMaskValue

(
    UDEditorParameterValue* InPara...
)

Public function Static

bool

 

IsOverriddenExpression

(
    UDEditorParameterValue* Parame...
)

Returns true if the parameter is being overridden

Public function Static

ECheckBoxSta...

 

IsOverriddenExpressionCheckbox

(
    UDEditorParameterValue* Parame...
)

Returns true if the parameter is being overridden

Public function Static

TSharedRef< ...

 

MakeStackReorderHandle

(
    TSharedPtr< SMaterialLayersFunction...
)

Public function Static

FReply

 

OnClickedSaveNewFunctionInstance

(
    UMaterialFunctionInterface* Ob...,
    UMaterialInterface* PreviewMat...,
    UObject* EditorObject
)

Public function Static

FReply

 

OnClickedSaveNewLayerInstance

(
    UMaterialFunctionInterface* Ob...,
    TSharedPtr< FSortedParamData > InSo...
)

Public function Static

FReply

 

OnClickedSaveNewMaterialInstance

(
    UMaterialInterface* Object,
    UObject* EditorObject
)

Public function Static

void

 

OnMaterialLayerAssetChanged

(
    const FAssetData& InAssetData,
    int32 Index,
    EMaterialParameterAssociation Mater...,
    TSharedPtr< class IPropertyHandle >...,
    FMaterialLayersFunctions* InMa...
)

Public function Static

void

 

OnOverrideParameter

(
    bool NewValue,
    UDEditorParameterValue* Parame...,
    UMaterialEditorInstanceConstant...
)

Called when a parameter is overridden;

Public function Static

bool

 

OnShouldFilterCurveAsset

(
    const FAssetData& AssetData,
    TSoftObjectPtr< class UCurveLinearC...
)

Public function Static

bool

 

OnShouldSetCurveAsset

(
    const FAssetData& AssetData,
    TSoftObjectPtr< class UCurveLinearC...
)

Public function Static

void

 

ResetCurveToDefault

(
    TSharedPtr< IPropertyHandle > Prope...,
    UDEditorParameterValue* Parame...,
    UMaterialEditorInstanceConstant...
)

Public function Static

void

 

ResetLayerAssetToDefault

(
    TSharedPtr< IPropertyHandle > Prope...,
    UDEditorParameterValue* InPara...,
    TEnumAsByte< EMaterialParameterAsso...,
    int32 Index,
    UMaterialEditorInstanceConstant...
)

Specific resets for layer and blend asses

Public function Static

void

 

ResetToDefault

(
    TSharedPtr< IPropertyHandle > Prope...,
    UDEditorParameterValue* Parame...,
    UMaterialEditorInstanceConstant...
)

Generic material property reset to default implementation. Resets Parameter to default

Public function Static

void

 

SetPositionFromCurveAsset

(
    const FAssetData& AssetData,
    TSoftObjectPtr< class UCurveLinearC...,
    UDEditorScalarParameterValue* ...,
    TSharedPtr< IPropertyHandle > Prope...,
    UObject* MaterialEditorInstanc...
)

Public function Static

void

 

SetVectorChannelMaskValue

(
    const FString& StringValue,
    TSharedPtr< IPropertyHandle > Prope...,
    UDEditorParameterValue* InPara...,
    UObject* MaterialEditorInstanc...
)

Public function Static

bool

 

ShouldLayerAssetShowResetToDefault

(
    TSharedPtr< IPropertyHandle > Prope...,
    TSharedPtr< struct FSortedParamData...,
    UMaterialInterface* InMaterial
)

If reset to default button should show for a layer or blend asset

Public function Static

EVisibility

 

ShouldShowExpression

(
    UDEditorParameterValue* Parame...,
    UMaterialEditorInstanceConstant...,
    FGetShowHiddenParameters ShowHidden...
)

Public function Static

bool

 

ShouldShowResetToDefault

(
    TSharedPtr< IPropertyHandle > Prope...,
    UDEditorParameterValue* Parame...,
    UMaterialEditorInstanceConstant...
)

Generic material property reset to default implementation. Resets Parameter to default

Public function Static

void

 

TransitionAndCopyParameters

(
    UMaterialInstanceConstant* Chi...,
    TArray< struct FEditorParameterGrou...,
    bool bForceCopy
)

Constants

Name

Description

BlendID

LayerID

LayerParamName

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss