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
413 stars 22 forks source link

[Question] How to set the default size of fonts or the scaling of UI #30

Closed LastAssertor closed 3 months ago

LastAssertor commented 3 months ago

Because my computer screen is too small.

JohnBaracuda commented 3 months ago

If you are using the TextMeshPro version, you can just set the scale factor of the Canvas Scaler component on the prefab.

image

If you are using the IMGUI version imported from the samples, there is actually a custom scale setting.

image

If you are using neither of them, I would recommend importing and using the TextMeshPro resources from the samples. This allows you to fully customize every aspect of the UI. Once imported, open the monitoring settings (Tools => Runtime Monitoring => Settings) and then drag the MonitoringUI prefab from the samples folder into the Monitoring UI Override field. You can then change the scale factor or even the scale mode of the UI using the Canvas Scaler component of the prefab.