Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TRotator
Description
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.
| Name | InitFromString |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Rotator.h |
| Include Path | #include "Math/Rotator.h" |
bool InitFromString
(
const FString & InSourceString
)
true if the P,Y,R values were read successfully; false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InSourceString | FString containing the rotator values. |