UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCanvasWordWrapper Class Reference

#include <CanvasTypes.h>

Public Types

typedef TArray< TPair< int32, int32 > > FWrappedLineData
 

Public Member Functions

ENGINE_API FCanvasWordWrapper ()
 
ENGINE_API void Execute (FStringView InString, const FTextSizingParameters &InParameters, TArray< FWrappedStringElement > &OutStrings, FWrappedLineData *const OutWrappedLineData)
 

Member Typedef Documentation

◆ FWrappedLineData

Array of indices where the wrapped lines begin and end in the source string

Constructor & Destructor Documentation

◆ FCanvasWordWrapper()

FCanvasWordWrapper::FCanvasWordWrapper ( )

Member Function Documentation

◆ Execute()

void FCanvasWordWrapper::Execute ( FStringView  InString,
const FTextSizingParameters InParameters,
TArray< FWrappedStringElement > &  OutStrings,
FWrappedLineData *const  OutWrappedLineData 
)

Used to generate multi-line/wrapped text.

Parameters
InStringThe unwrapped text.
InFontInfoThe font used to render the text.
InWrapWidthThe width available.
OutWrappedLineDataAn optional array to fill with the indices from the source string marking the begin and end points of the wrapped lines

The documentation for this class was generated from the following files: