I am making a farming game on Unreal Engine 4.27.2, where time only moves when the player does, which is achieved by having a timer in the FirstPersonCharacter blueprint.
However when I tried to make a clock widget to keep the track on the time, my game started lagging more the more I played it, because of the constant casts to FirstPersonCharacter from the widget.
Is there any other way to get the timer value?