Unreal Directive Docs
PluginsUDCoreFeaturesFunction Library

Basic Functions

Core utility functions for common operations

The UUDCoreFunctionLibrary provides core utility functions for common operations like clipboard management, project information, and class utilities.

Class Utilities

GetChildClasses

Returns a list of classes that derive from the given base class. This exposes the C++-only GetDerivedClasses function to Blueprints.

GetChildClasses

UClass* BaseClass = AActor::StaticClass();
TArray<UClass*> DerivedClasses;
UUDCoreFunctionLibrary::GetChildClasses(BaseClass, DerivedClasses);

Parameters

NameTypeDescription
BaseClassUClass*The base class to get derived classes for
bRecursiveboolWhether to include derived classes of derived classes

Returns

NameTypeDescription
DerivedClassesTArray<UClass*>Array of classes that derive from the base class

Project Information

GetProjectVersion

Returns the project version as defined in your Project Settings.

GetProjectVersion

FString ProjectVersion = UUDCoreFunctionLibrary::GetProjectVersion();

Returns

NameTypeDescription
ProjectVersionFStringThe project version string from Project Settings

Clipboard Operations

Clipboard operations work in both editor and packaged builds on supported platforms.

CopyTextToClipboard

Copies FText to the system clipboard.

CopyTextToClipboard

FText TextToCopy = FText::FromString(TEXT("Hello, World!"));
UUDCoreFunctionLibrary::CopyTextToClipboard(TextToCopy);

Parameters

NameTypeDescription
TextFTextThe text to copy to the clipboard

CopyStringToClipboard

Copies an FString to the system clipboard.

CopyStringToClipboard

FString StringToCopy = TEXT("Hello, World!");
UUDCoreFunctionLibrary::CopyStringToClipboard(StringToCopy);

Parameters

NameTypeDescription
StringFStringThe string to copy to the clipboard

GetTextFromClipboard

Retrieves the clipboard content as FText.

GetTextFromClipboard

FText ClipboardText = UUDCoreFunctionLibrary::GetTextFromClipboard();

Returns

NameTypeDescription
TextFTextThe content from the clipboard as FText

GetStringFromClipboard

Retrieves the clipboard content as an FString.

GetStringFromClipboard

FString ClipboardString = UUDCoreFunctionLibrary::GetStringFromClipboard();

Returns

NameTypeDescription
StringFStringThe content from the clipboard as FString

ClearClipboard

Clears the system clipboard.

ClearClipboard

UUDCoreFunctionLibrary::ClearClipboard();

Summary

FunctionDescription
GetChildClassesGet all classes deriving from a base class
GetProjectVersionGet the project version string
CopyTextToClipboardCopy FText to clipboard
CopyStringToClipboardCopy FString to clipboard
GetTextFromClipboardGet clipboard content as FText
GetStringFromClipboardGet clipboard content as FString
ClearClipboardClear the clipboard

On this page