UnityTech / UIWidgets

UIWidget is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
Other
1.97k stars 256 forks source link

How to change widget state using setState from inside a Timer callback (如何从Timer回调内部使用setState更改小部件状态) #462

Closed nitdrive closed 3 years ago

nitdrive commented 3 years ago

I am working on building something similar to a digital clock, that needs to update the text of a widget periodically every 2 seconds, I tried to do this by calling SetState from inside the Timer callback but the widget does not update, what am I missing?