UCanvas::K2_StrLen

Returns the wrapped text size in screen space coordinates.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h

Include

#include "Engine/Canvas.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

FVector2D K2_StrLen
(
    UFont * RenderFont,
    const FString & RenderText
)

Remarks

Returns the wrapped text size in screen space coordinates.

Returns

Returns the screen space size of the text.

Parameters

Parameter

Description

RenderFont

Font to use when determining the size of the text. If this is null, then a default engine font is used.

RenderText

Text to determine the size of.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss