UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionComment.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"
9#include "MaterialExpressionComment.generated.h"
10
12
13UCLASS(MinimalAPI)
15{
17
18public:
19
20 UPROPERTY()
21 int32 SizeX;
22
23 UPROPERTY()
24 int32 SizeY;
25
26 UPROPERTY(EditAnywhere, Category=MaterialExpressionComment, meta=(MultiLine=true))
27 FString Text;
28
30 UPROPERTY(EditAnywhere, Category=MaterialExpressionComment)
32
34 UPROPERTY(EditAnywhere, Category=MaterialExpressionComment, meta=(ClampMin=1, ClampMax=1000))
35 int32 FontSize = 18;
36
38 UPROPERTY(EditAnywhere, Category=MaterialExpressionComment, meta=(DisplayName="Show Bubble When Zoomed"))
39 uint32 bCommentBubbleVisible_InDetailsPanel:1 = false;
40
42 UPROPERTY(EditAnywhere, Category=MaterialExpressionComment, meta=(DisplayName="Color Bubble", EditCondition=bCommentBubbleVisible_InDetailsPanel))
43 uint32 bColorCommentBubble:1 = false;
44
46 UPROPERTY(EditAnywhere, Category=MaterialExpressionComment)
47 bool bGroupMode = true;
48
49 //~ Begin UObject Interface
50#if WITH_EDITOR
51 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
52 virtual bool Modify(bool bAlwaysMarkDirty = true) override;
53#endif // WITH_EDITOR
54 //~ End UObject Interface
55
56 //~ Begin UMaterialExpression Interface
57#if WITH_EDITOR
58 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
59 virtual bool MatchesSearchQuery( const TCHAR* SearchQuery ) override;
60#endif // WITH_EDITOR
61 virtual bool IsAllowedIn(const UObject* MaterialOrFunction) const override { return false; }
62 //~ End UMaterialExpression Interface
63};
64
65
66
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
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Array.h:670
Definition MaterialExpressionComment.h:15
virtual bool IsAllowedIn(const UObject *MaterialOrFunction) const override
Definition MaterialExpressionComment.h:61
Definition MaterialExpression.h:150
Definition Object.h:95
@ false
Definition radaudio_common.h:23
Definition Color.h:48
Definition UnrealType.h:6865