Download

How I set at Directional Light the Rotation from C++?

somebody know ?

solved:


	FRotator rot;

	rot.Pitch = 0.0f; rot.Roll = 0.0f; rot.Yaw = 70.0f; // Sunrise
														// rot.Pitch = 0.0f; rot.Roll = 0.0f; rot.Yaw = -70.0f; Sunset
	Sun->AddLocalRotation(rot);