UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionCollectionParameter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
7#pragma once
8
9#include "CoreMinimal.h"
11#include "Misc/Guid.h"
13#include "MaterialExpressionCollectionParameter.generated.h"
14
16
17UCLASS(hidecategories=object, MinimalAPI)
19{
21
22
25
28 FName ParameterName;
29
31 UPROPERTY()
32 FGuid ExpressionGUID;
33
37
40 int32 SortPriority = 32;
41
43 UPROPERTY()
44 FGuid ParameterId;
45
46 //~ Begin UObject Interface.
47#if WITH_EDITOR
48 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
49#endif // WITH_EDITOR
50 virtual void PostLoad() override;
51 //~ End UObject Interface.
52
53 //~ Begin UMaterialExpression Interface
54#if WITH_EDITOR
55 virtual void Build(MIR::FEmitter& Emitter) override;
56 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
57 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
58
59 virtual bool HasAParameterName() const override { return true; }
60 virtual FName GetParameterName() const override { return ParameterName; }
61 virtual void SetParameterName(const FName& Name) override { ParameterName = Name; }
62
63 ENGINE_API virtual bool GetParameterValue(FMaterialParameterMetadata& OutMeta) const;
65
66 virtual void ValidateParameterName(const bool bAllowDuplicateName) override {};
67
68 virtual bool MatchesSearchQuery( const TCHAR* SearchQuery ) override;
69
70#endif
71 //~ End UMaterialExpression Interface
72};
73
74
75
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EMaterialExpressionSetParameterValueFlags
Definition MaterialExpression.h:113
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition MaterialCompiler.h:109
Definition NameTypes.h:617
Definition Array.h:670
Definition MaterialExpressionCollectionParameter.h:19
Definition MaterialExpression.h:150
Definition Guid.h:109
Definition MaterialParameters.h:446
Definition UnrealType.h:6865
Definition ObjectPtr.h:488