Can you change the Unity Noesis default FontSize at runtime?
Posted: 24 Jul 2020, 08:01
Running under Unity, I've set my Noesis default fontsize to 15px. This works good for our WebAssembly builds, but for tablets we'd like the default fontsize to be bigger.
Maybe a better way to do this would be to just create different styles for tablet/mobile, but I was wondering if there was some way to alter the default fontsize programmatically? Then I could detect the Android or iOS builds and set the default fontsize to 18 in those cases and leave it 15 for our WebAssembly build.
Thanks--if this isn't possible, any other suggestions on how to accomplish this are welcome. Otherwise, I'll just code the default fontsize into every page and alter it in the viewmodel.
Maybe a better way to do this would be to just create different styles for tablet/mobile, but I was wondering if there was some way to alter the default fontsize programmatically? Then I could detect the Android or iOS builds and set the default fontsize to 18 in those cases and leave it 15 for our WebAssembly build.
Thanks--if this isn't possible, any other suggestions on how to accomplish this are welcome. Otherwise, I'll just code the default fontsize into every page and alter it in the viewmodel.