JohnBaracuda / com.baracuda.runtime-monitoring

Runtime Monitoring is an easy way for you to monitor the value or state of custom C# members during runtime. Just add the 'Monitor' attribute to a field, property, event, method or even class and get its value or state displayed automatically in a customizable and extendable debug UI.
MIT License
419 stars 23 forks source link

WebGL UI is not updating #20

Closed AldeRoberge closed 1 year ago

AldeRoberge commented 1 year ago

In WebGL :

image

In Editor :

image

Current event time elapsed (just a simple float value) does not update, nor does any other value.

JohnBaracuda commented 1 year ago

The issue should be fixed in version 3.5.4, although I can only verify this for Unity 2019.4. If you encounter the problem in your version, please feel free to reopen this issue.

rmpasswd commented 6 months ago

Hello, is there a built in function that can update the labels? In my case the label values come from a websocket broker, but the text UI updates only if i do a mouse click on the screen....

JohnBaracuda commented 6 months ago

There might be a way. For individual elements, look at the MUpdateEvent attribute. This lets you pass the name of an event that, when invoked, will force the monitored element to update. If that doesn't help, you can get all elements using Monitor.Registry.GetMonitorHandles() or Monitor.Registry.GetMonitorHandlesForTarget(). Then, call Refresh() on the individual handles. However, I am not familiar with most of the quirks when using WebGL, so keep that in mind.