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
"
7
#include "
Engine/EngineTypes.h
"
8
#include "
Materials/MaterialExpression.h
"
9
#include "
RHIShaderPlatform.h
"
10
#include "
Templates/Tuple.h
"
11
#include "
UObject/ObjectMacros.h
"
12
13
#include "MaterialExpressionFontSample.generated.h"
14
15
class
UTexture
;
16
class
ITargetPlatform
;
17
18
namespace
UE
19
{
20
namespace
Shader
21
{
22
struct
FTextureValue
;
23
}
24
}
25
26
UCLASS
(
collapsecategories
,
hidecategories
=
Object
, MinimalAPI)
27
class
UMaterialExpressionFontSample
:
public
UMaterialExpression
28
{
29
GENERATED_UCLASS_BODY
()
30
31
32
UPROPERTY
(EditAnywhere, Category=
MaterialExpressionFontSample
)
33
TObjectPtr<class UFont>
Font
;
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
60
protected
:
61
TTuple<bool, UTexture*, EMaterialSamplerType, FString>
ValidateAndGetTextureSampler
(
EShaderPlatform
ShaderPlatform,
const
ITargetPlatform
* TargetPlatform);
62
};
63
64
65
EAudioParameterType::Object
@ Object
CoreMinimal.h
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
EDatasmithElementType::Shader
@ Shader
EngineTypes.h
MaterialExpression.h
EMaterialParameterType::Font
@ Font
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
RHIShaderPlatform.h
EShaderPlatform
EShaderPlatform
Definition
RHIShaderPlatform.h:11
ERDGSetupTaskWaitPoint::Compile
@ Compile
Tuple.h
FMaterialCompiler
Definition
MaterialCompiler.h:109
TArray
Definition
Array.h:670
UMaterialExpressionFontSample
Definition
MaterialExpressionFontSample.h:28
UMaterialExpressionFontSample::ValidateAndGetTextureSampler
TTuple< bool, UTexture *, EMaterialSamplerType, FString > ValidateAndGetTextureSampler(EShaderPlatform ShaderPlatform, const ITargetPlatform *TargetPlatform)
UMaterialExpression
Definition
MaterialExpression.h:150
UObject
Definition
Object.h:95
UTexture
Definition
Texture.h:1219
UE
Definition
AdvancedWidgetsModule.cpp:13
TObjectPtr
Definition
ObjectPtr.h:488
TTuple
Definition
Tuple.h:652
Engine
Source
Runtime
Engine
Public
Materials
MaterialExpressionFontSample.h
Generated by
1.9.8