UUxtInternalFunctionLibrary
Library of utility internal functions for UX Tools.
class UUxtInternalFunctionLibrary;
Header
#include <Utils/UxtInternalFunctionLibrary.h>
Inheritance
Inherits from UBlueprintFunctionLibrary
Public Functions
Name | |
---|---|
bool | HexCodePointToFString(const FString & Input, FString & Output) |
bool | FStringToHexCodePoint(const FString & Input, FString & Output) |
bool | IsFontOffline(const UFont * Font) |
bool | GetFontCharacterData(const UFont * Font, TArray< FUxtFontCharacter > & FontCharacters) |
FVector | Slerp(const FVector & Vector1, const FVector & Vector2, const float Slerp) |
template <typename T > T * |
GetObjectFromPtr(const TSoftObjectPtr< T > & ObjectPtr) |
bool | IsPrimitiveEqualOrAttachedTo(const USceneComponent * Parent, const USceneComponent * Other) |
Public Functions Documentation
function HexCodePointToFString
static bool HexCodePointToFString(
const FString & Input,
FString & Output
)
Converts a Unicode code point as hex into the corresponding UTF-16 FString representation. Returns true when the conversion is successful.
function FStringToHexCodePoint
static bool FStringToHexCodePoint(
const FString & Input,
FString & Output
)
Converts a UTF-16 FString into the corresponding unicode code point as hex representation. Returns true when the conversion is successful.
function IsFontOffline
static bool IsFontOffline(
const UFont * Font
)
Returns true if a UFont is using offline caching.
function GetFontCharacterData
static bool GetFontCharacterData(
const UFont * Font,
TArray< FUxtFontCharacter > & FontCharacters
)
Builds an array of FUxtFontCharacters for each character present in a UFont.
function Slerp
static FVector Slerp(
const FVector & Vector1,
const FVector & Vector2,
const float Slerp
)
Spherical linear interpolate between two vectors
function GetObjectFromPtr
template <typename T >
static inline T * GetObjectFromPtr(
const TSoftObjectPtr< T > & ObjectPtr
)
Get the object from a TSoftObjectPtr, loading it synchronously if it is not loaded.
function IsPrimitiveEqualOrAttachedTo
static inline bool IsPrimitiveEqualOrAttachedTo(
const USceneComponent * Parent,
const USceneComponent * Other
)
Returns true if Other is attached to Parent or if they are the same component.
Updated on 19 August 2021 at 17:42:51 Coordinated Universal Time