Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionFontSample
- UMaterialExpressionFontSampleParameter
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionFontSample.h |
| Include | #include "Materials/MaterialExpressionFontSample.h" |
Syntax
class UMaterialExpressionFontSample : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class UFont > | Font | Font resource that will be sampled | |
| int32 | FontTexturePage | Allow access to the various font pages |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionFontSample
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if GetReferencedTexture() can ever return a valid pointer. | ||
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| int32 | Returns the amount of padding to use for the label. | ||
| UObject * | Callback to get any texture reference this expression emits. | ||
| int32 | GetWidth () |
Get the width required by this expression (in the material editor). | |
| bool | MatchesSearchQuery
(
const TCHAR* SearchQuery |
MatchesSearchQuery: Check this expression to see if it matches the search query |