FVector2D::InitFromString

Initialize this Vector based on an [FString](API\Runtime\Core\Containers\FString).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector2D.h

Include

#include "Math/Vector2D.h"

Syntax

bool InitFromString
(
    const FString & InSourceString
)

Remarks

Initialize this Vector based on an FString. The String is expected to contain X=, Y=. The FVector2D will be bogus when InitFromString returns false.

Returns

true if the X,Y values were read successfully; false otherwise.

Parameters

Parameter

Description

InSourceString

FString containing the vector values.

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