UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionFontSample.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 "RHIShaderPlatform.h"
10#include "Templates/Tuple.h"
12
13#include "MaterialExpressionFontSample.generated.h"
14
15class UTexture;
16class ITargetPlatform;
17
18namespace UE
19{
20namespace Shader
21{
22struct FTextureValue;
23}
24}
25
28{
30
31
32 UPROPERTY(EditAnywhere, Category=MaterialExpressionFontSample)
34
36 UPROPERTY(EditAnywhere, Category=MaterialExpressionFontSample)
37 int32 FontTexturePage;
38
39
40 //~ Begin UMaterialExpression Interface
41#if WITH_EDITOR
42 virtual void Build(MIR::FEmitter& Emitter) override;
43 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
44 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
45 virtual bool MatchesSearchQuery(const TCHAR* SearchQuery) override;
46 virtual int32 GetWidth() const override;
47 virtual int32 GetLabelPadding() override { return 8; }
48#endif
49
55 virtual UObject* GetReferencedTexture() const override;
56
57 virtual bool CanReferenceTexture() const override { return true; }
58 //~ End UMaterialExpression Interface
59
60protected:
62};
63
64
65
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
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
EShaderPlatform
Definition RHIShaderPlatform.h:11
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition MaterialExpressionFontSample.h:28
TTuple< bool, UTexture *, EMaterialSamplerType, FString > ValidateAndGetTextureSampler(EShaderPlatform ShaderPlatform, const ITargetPlatform *TargetPlatform)
Definition MaterialExpression.h:150
Definition Object.h:95
Definition Texture.h:1219
Definition AdvancedWidgetsModule.cpp:13
Definition ObjectPtr.h:488
Definition Tuple.h:652