Hello, I have one font I use throughout my game which in some spots changes to a default font but in others it stays the same. I'm a little baffled because it doesn't happen every time. Has anyone ever run across this problem and if son is there a way to check if the correct font is being used at run time? Thanks
1 Answer
1Hey, I was searching for this problem and eventually found the answer. I thought I would share even though its old in case someone runs across it.
It doesn't work in the web player when my font import settings are set to "Dynamic" but it does work when it is set to "Unicode".
Yes, you're right. Of course we have to use the full class name (including namespace) since there are no "using" statements for reflection ^^. I changed my examle. Now that I see this post again, you could even get a slightly better preformance by [creating a delegate][1] out of the methodInfo [1]: https://docs.microsoft.com/en-us/dotnet/api/system.delegate.createdelegate?view=netframework-4.8
– Bunny83