TVector2::InitFromString

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

Choose your operating system:

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 TVector2 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.