How to convert Frotator.Yaw to Vector2D?

Hello.

How to convert Frotator.Yaw to Vector2D ?

for example I have:

FVector2D WaveDirection = FVector2D(0, 1);

FRotator WindDirection.Yaw // witch is randomized

How to do:
WaveDirection = WindDirection ??

FRotator’s have a Pitch, Yaw and Roll. These are 3 float values.

Your WaveDirection is an FVector2D, which uses 2 floats. You will either want to do:

WaveDirection.X = WindDirection.Yaw;
or
WaveDirection.Y = WindDirection.Yaw;