UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionFunctionOutput.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
8#include "Misc/Guid.h"
11#include "MaterialExpressionFunctionOutput.generated.h"
12
14
15UCLASS(hidecategories=object, MinimalAPI)
17{
19
20
21 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MaterialExpressionFunctionOutput)
22 FName OutputName;
23
25 UPROPERTY(EditAnywhere, Category=MaterialExpressionFunctionOutput, meta=(MultiLine=true))
26 FString Description;
27
29 UPROPERTY(EditAnywhere, Category=MaterialExpression)
30 int32 SortPriority;
31
33 UPROPERTY()
35
37 UPROPERTY()
38 uint32 bLastPreviewed:1;
39
41 UPROPERTY()
42 FGuid Id;
43
44
45 //~ Begin UObject Interface.
46 virtual void PostLoad() override;
47 virtual void PostDuplicate(bool bDuplicateForPIE) override;
48#if WITH_EDITOR
49 virtual void PostEditImport() override;
50 virtual void PreEditChange(FProperty* PropertyAboutToChange) override;
51 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
52#endif // WITH_EDITOR
53 //~ End UObject Interface.
54
55 //~ Begin UMaterialExpression Interface
56#if WITH_EDITOR
57 virtual void Build(MIR::FEmitter& Emitter) override;
58 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
59 virtual int32 CompilePreview(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
60 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
61 virtual FName GetInputName(int32 InputIndex) const override
62 {
63 return NAME_None;
64 }
65 virtual void GetExpressionToolTip(TArray<FString>& OutToolTip) override;
66 virtual EMaterialValueType GetInputValueType(int32 InputIndex) override;
67 virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override;
68 virtual bool IsResultMaterialAttributes(int32 OutputIndex) override;
69 virtual bool IsResultSubstrateMaterial(int32 OutputIndex) override;
72#endif // WITH_EDITOR
73 virtual bool IsAllowedIn(const UObject* MaterialOrFunction) const override;
74 //~ End UMaterialExpression Interface
75
76
78 ENGINE_API void ConditionallyGenerateId(bool bForce);
79
80#if WITH_EDITOR
83#endif // WITH_EDITOR
84
85private:
86#if WITH_EDITOR
89#endif // WITH_EDITOR
90};
91
92
93
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
EMaterialValueType
Definition MaterialValueType.h:15
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaterialCompiler.h:109
Definition NameTypes.h:617
Definition UnrealType.h:174
Definition Array.h:670
Definition MaterialExpressionFunctionOutput.h:17
Definition MaterialExpression.h:150
Definition Object.h:95
Definition MaterialExpressionIO.h:23
Definition Guid.h:109
Definition UnrealType.h:6865
Definition EngineTypes.h:840
Definition SubstrateMaterialShared.h:105