Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionFontSample |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionFontSample.h |
| Include Path | #include "Materials/MaterialExpressionFontSample.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionFontSample : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionFontSample
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionFontSample
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionFontSample.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Font | TObjectPtr< class UFont > | Font resource that will be sampled | Materials/MaterialExpressionFontSample.h |
|
| FontTexturePage | int32 | Allow access to the various font pages | Materials/MaterialExpressionFontSample.h |
|
Functions
Public
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Build
(
MIR::FEmitter& Emitter |
Builds this expression's material IR. | Materials/MaterialExpressionFontSample.h | |
virtual bool CanReferenceTexture() |
Returns true if GetReferencedTexture() / GetReferencedTextures() can ever return a valid pointer(s). | Materials/MaterialExpressionFontSample.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionFontSample.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionFontSample.h | ||
virtual int32 GetLabelPadding() |
Returns the amount of padding to use for the label. | Materials/MaterialExpressionFontSample.h | |
virtual UObject * GetReferencedTexture () |
Callback to get any texture reference this expression emits. | Materials/MaterialExpressionFontSample.h | |
virtual int32 GetWidth() |
Get the width required by this expression (in the material editor). | Materials/MaterialExpressionFontSample.h | |
virtual bool MatchesSearchQuery
(
const TCHAR* SearchQuery |
MatchesSearchQuery: Check this expression to see if it matches the search query | Materials/MaterialExpressionFontSample.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTuple< bool, UTexture *, EMaterialSamplerType, FString > ValidateAndGetTextureSampler
(
EShaderPlatform ShaderPlatform, |
Materials/MaterialExpressionFontSample.h |