UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionDynamicParameter.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
9
#pragma once
10
11
#include "
CoreMinimal.h
"
12
#include "
UObject/ObjectMacros.h
"
13
#include "
MaterialExpressionIO.h
"
14
#include "
Materials/MaterialExpression.h
"
15
#include "MaterialExpressionDynamicParameter.generated.h"
16
17
struct
FPropertyChangedEvent
;
18
19
UCLASS
(
collapsecategories
,
hidecategories
=
Object
, MinimalAPI)
20
class
UMaterialExpressionDynamicParameter
:
public
UMaterialExpression
21
{
22
GENERATED_UCLASS_BODY
()
23
24
29
UPROPERTY
(EditAnywhere,
editfixedsize
, Category=
MaterialExpressionDynamicParameter
)
30
TArray<FString>
ParamNames;
31
32
UPROPERTY
(EditAnywhere, Category =
MaterialExpressionDynamicParameter
, Meta = (
ShowAsInputPin
=
"Primary"
))
33
FLinearColor
DefaultValue =
FLinearColor::White
;
34
36
UPROPERTY
(EditAnywhere, Category =
MaterialExpressionDynamicParameter
, meta = (UIMin = 0, ClampMin = 0, UIMax = 3, ClampMax = 3,
ShowAsInputPin
=
"Primary"
))
37
uint32
ParameterIndex = 0;
38
39
//~ Begin UObject Interface
40
#if WITH_EDITOR
41
virtual
void
PostEditChangeProperty(
FPropertyChangedEvent
& PropertyChangedEvent)
override
;
42
#endif
// WITH_EDITOR
43
44
virtual
void
PostLoad
()
override
;
45
//~ End UObject Interface
46
47
//~ Begin UMaterialExpression Interface
48
#if WITH_EDITOR
49
virtual
void
Build
(MIR::FEmitter&
Emitter
)
override
;
50
virtual
int32
Compile
(
class
FMaterialCompiler
* Compiler,
int32
OutputIndex)
override
;
51
virtual
void
GetCaption
(
TArray<FString>
&
OutCaptions
)
const override
;
52
virtual
TArray<FExpressionOutput>
& GetOutputs()
override
;
53
virtual
bool
MatchesSearchQuery
(
const
TCHAR
*
SearchQuery
)
override
;
54
virtual
int32
GetWidth()
const override
;
55
virtual
int32
GetLabelPadding
()
override
{
return
8; }
56
virtual
FText
GetKeywords()
const override
{
return
FText::FromString
(
TEXT
(
"dynamic"
)); }
57
58
#endif
59
//~ End UMaterialExpression Interface
60
61
#if WITH_EDITORONLY_DATA
66
ENGINE_API
void
UpdateDynamicParameterProperties
();
67
#endif
// WITH_EDITORONLY_DATA
68
75
bool
CopyDynamicParameterProperties(
const
UMaterialExpressionDynamicParameter
*
FromParam
);
76
};
77
78
79
EAsyncPackageLoadingState2::PostLoad
@ PostLoad
EAudioParameterType::Object
@ Object
CoreMinimal.h
TEXT
#define TEXT(x)
Definition
Platform.h:1272
TCHAR
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition
Platform.h:1135
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
MaterialExpressionIO.h
MaterialExpression.h
ObjectMacros.h
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
GENERATED_UCLASS_BODY
#define GENERATED_UCLASS_BODY(...)
Definition
ObjectMacros.h:768
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
EAccelerationStructureBuildMode::Build
@ Build
ERDGSetupTaskWaitPoint::Compile
@ Compile
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FMaterialCompiler
Definition
MaterialCompiler.h:109
FText
Definition
Text.h:385
FText::FromString
static CORE_API FText FromString(const ANSICHAR *String)
Definition
Text.cpp:1081
TArray
Definition
Array.h:670
UMaterialExpressionDynamicParameter
Definition
MaterialExpressionDynamicParameter.h:21
UMaterialExpression
Definition
MaterialExpression.h:150
FLinearColor
Definition
Color.h:48
FLinearColor::White
static CORE_API const FLinearColor White
Definition
Color.h:456
FPropertyChangedEvent
Definition
UnrealType.h:6865
Engine
Source
Runtime
Engine
Public
Materials
MaterialExpressionDynamicParameter.h
Generated by
1.9.8