FOjectFinder fails to find Font
Hi Guys, First of all I am aware that there are several questions concerning this issue : https://answers.unrealengine.com/questions/35807/imported-fonts-not-working.html https://answers.unrealengine.com/questions/73913/ahud-drawtext-ufont-compile-error-c.html https://answers.unrealengine.com/questions/55025/c-how-to-set-ufont.html?sort=oldest https://answers.unrealengine.com/questions/70749/constructorhelper-fobjectfinder-fails-to-find-font.html
I still couldn't figure it out so here I am with my question:
The error I got is :
I've got the Font in the ContentBrowser in a folder named Fonts.
It seems to me that this a Path problem in the TEXT(), I got the same error message whatever I write in TEXT(), still I can't figure it out, I hope someone will be able to enlighten me on this issue.
Get myself to simply use BluePrints to set the Default font to do that add into GameMode class :
BP_HUD is a blueprint instance of your HUD class in C ++, don't forget to change UPROPERTY to something like that:
answered Aug 19 '14 at 11:24 AM
First of all, aren't you missing a ' at the end of your Font Path? Just saw that, don't know if it could cause an error.
The second thing is, you are assigning an UObject to an UFont Variable. You need to cast it.
For example like this:
I'm not so good in c++, but that's how i cast my Blueprints after getting them with ObjectFinder.
answered Aug 18 '14 at 09:27 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here