TRotator::InitFromString

Initialize this Rotator 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/Rotator.h

Include

#include "Math/Rotator.h"

Syntax

bool InitFromString
(
    const FString & InSourceString
)

Remarks

Initialize this Rotator based on an FString. The String is expected to contain P=, Y=, R=. The TRotator will be bogus when InitFromString returns false.

Returns

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

Parameters

Parameter

Description

InSourceString

FString containing the rotator values.