Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UKismetTextLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetTextLibrary.h |
| Include | #include "Kismet/KismetTextLibrary.h" |
Syntax
class UKismetTextLibrary : public UBlueprintFunctionLibrary
Constructors
| Type | Name | Description | |
|---|---|---|---|
UKismetTextLibrary
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FText | AsCurrency_Float
(
float Value, |
Default values are duplicated from FNumberFormattingOptions and should be replicated in all functions and in the struct when changed! | |
| FText | AsCurrency_Integer
(
int32 Value, |
Default values are duplicated from FNumberFormattingOptions and should be replicated in all functions and in the struct when changed! | |
| FText | AsCurrencyBase
(
int32 BaseValue, |
Generate an FText that represents the passed number as currency in the current culture. | |
| FText | AsDate_DateTime
(
const FDateTime& InDateTime |
Converts a passed in date & time to a text, formatted as a date using an invariant timezone. | |
| FText | AsDateTime_DateTime
(
const FDateTime& In |
Converts a passed in date & time to a text, formatted as a date & time using an invariant timezone. | |
| FText | AsPercent_Float
(
float Value, |
Default values are duplicated from FNumberFormattingOptions and should be replicated in all functions and in the struct when changed! | |
| FText | AsTime_DateTime
(
const FDateTime& In |
Converts a passed in date & time to a text, formatted as a time using an invariant timezone. | |
| FText | AsTimespan_Timespan
(
const FTimespan& InTimespan |
Converts a passed in time span to a text, formatted as a time span | |
| FText | AsTimeZoneDate_DateTime
(
const FDateTime& InDateTime, |
Converts a passed in date & time to a text, formatted as a date using the given timezone (default is the local timezone). | |
| FText | AsTimeZoneDateTime_DateTime
(
const FDateTime& InDateTime, |
Converts a passed in date & time to a text, formatted as a date & time using the given timezone (default is the local timezone). | |
| FText | AsTimeZoneTime_DateTime
(
const FDateTime& InDateTime, |
Converts a passed in date & time to a text, formatted as a time using the given timezone (default is the local timezone). | |
| FText | Conv_BoolToText
(
bool InBool |
Converts a boolean value to formatted text, either 'true' or 'false' | |
| FText | Conv_ByteToText
(
uint8 Value |
Converts a byte value to formatted text | |
| FText | Conv_ColorToText
(
FLinearColor InColor |
Converts a linear color value to localized formatted text, in the form '(R=,G=,B=,A=)' | |
| FText | Conv_DoubleToText
(
double Value, |
Converts a passed in double to text based on formatting options | |
| FText | Conv_Int64ToText
(
int64 Value, |
Converts a passed in integer to text based on formatting options | |
| FText | Conv_IntToText
(
int32 Value, |
Default values are duplicated from FNumberFormattingOptions and should be replicated in all functions and in the struct when changed! | |
| FText | Conv_NameToText
(
FName InName |
Converts Name to culture invariant text | |
| FText | Conv_ObjectToText
(
UObject* InObj |
Converts a UObject value to culture invariant text by calling the object's GetName method | |
| FText | Conv_RotatorToText
(
FRotator InRot |
Converts a rotator value to localized formatted text, in the form 'P= Y= R=' | |
| FText | Conv_StringToText
(
const FString& InString |
Converts string to culture invariant text. | |
| FString | Conv_TextToString
(
const FText& InText |
Converts localizable text to the string | |
| FText | Conv_TransformToText
(
const FTransform& InTrans |
Converts a transform value to localized formatted text, in the form 'Translation: X= Y= Z= Rotation: P= Y= R= Scale: X= Y= Z=' | |
| FText | Conv_Vector2dToText
(
FVector2D InVec |
Converts a vector2d value to localized formatted text, in the form 'X= Y=' | |
| FText | Conv_VectorToText
(
FVector InVec |
Converts a vector value to localized formatted text, in the form 'X= Y= Z=' | |
| bool | EqualEqual_IgnoreCase_TextText
(
const FText& A, |
Returns true if A and B are linguistically equal (A == B), ignoring case. | |
| bool | EqualEqual_TextText
(
const FText& A, |
Returns true if A and B are linguistically equal (A == B). | |
| bool | FindTextInLocalizationTable
(
const FString& Namespace, |
Attempts to find existing Text using the representation found in the loc tables for the specified namespace and key. | |
| FText | Format
(
FText InPattern, |
Used for formatting text using the FText::Format function and utilized by the UK2Node_FormatText | |
| FText | GetEmptyText () |
Returns an empty piece of text. | |
| void | IsPolyglotDataValid
(
const FPolyglotTextData& PolyglotData, |
Check whether the given polyglot data is valid. | |
| bool | NotEqual_IgnoreCase_TextText
(
const FText& A, |
Returns true if A and B are linguistically not equal (A != B), ignoring case. | |
| bool | NotEqual_TextText
(
const FText& A, |
Returns true if A and B are linguistically not equal (A != B). | |
| FText | PolyglotDataToText
(
const FPolyglotTextData& PolyglotData |
Get the text instance created from this polyglot data. | |
| bool | StringTableIdAndKeyFromText
(
FText Text, |
Attempts to find the String Table ID and key used by the given text. | |
| FText | TextFromStringTable
(
const FName TableId, |
Attempts to create a text instance from a string table ID and key. | |
| bool | TextIsCultureInvariant
(
const FText& InText |
Returns true if text is culture invariant. | |
| bool | TextIsEmpty
(
const FText& InText |
Returns true if text is empty. | |
| bool | TextIsFromStringTable
(
const FText& Text |
Returns true if the given text is referencing a string table. | |
| bool | TextIsTransient
(
const FText& InText |
Returns true if text is transient. | |
| FText | TextToLower
(
const FText& InText |
Transforms the text to lowercase in a culture correct way. | |
| FText | TextToUpper
(
const FText& InText |
Transforms the text to uppercase in a culture correct way. | |
| FText | TextTrimPreceding
(
const FText& InText |
Removes whitespace characters from the front of the text. | |
| FText | TextTrimPrecedingAndTrailing
(
const FText& InText |
Removes whitespace characters from the front and end of the text. | |
| FText | TextTrimTrailing
(
const FText& InText |
Removes trailing whitespace characters. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FText | Conv_FloatToText
(
float Value, |
This method has been deprecated and will be removed. |