Download

How to control SunSky actor by Key+mouse movment

Hi
Im kind of new to unreal engine, but i have managed to make a UIwidget with a slider that is controlling the time of day from the SunSky actor.

But what im looking for is controlling the value of the solar time (time of day) by holding down the shift+right mouse buttom, and changing the value based on how far i move the mouse to the right or left.

does anyone have a good example on getting the value of mouse movment to return a float. to contol vaules in other blueprints ?

Finnaly figured it out:

Made this blueprint inside the PlayerController.

If someone have a more elegant way of setting this up, please let my know