Page 1 of 1

[UE4] Can I put font into a child folder?

Posted: 27 Mar 2018, 08:57
by UE4
the default struct is below, work well on UE4
PrjDir
-MyView.Xaml
-MyFont.ttf

but, when I want to put assets to different folder, it does not work in UE4, while works in WPF, and I use blend to select font : "/GameGUI;component/Fonts/#KaiTi"
PrjDir
-MyView.Xaml
-FontsDir
--MyFOnt.ttf

Re: [UE4] Can I put font into a child folder?

Posted: 27 Mar 2018, 11:07
by jsantos
Does it work if you are a relative URI? Something like 'Fonts/#KaiTi'

Re: [UE4] Can I put font into a child folder?

Posted: 28 Mar 2018, 12:06
by UE4
relative uri works fine. I think if I can set font property by select one in blend would be more useful

Re: [UE4] Can I put font into a child folder?

Posted: 02 Apr 2018, 10:37
by hcpizzi
Is your XAML in the project's Content folder? Absolute URIs are considered relative to the game's Content folder by default. I recently added a new editor setting that allows having the XAMLs and related assets out of the Content folder, and I'm going to improve it so that you can import them into any folder in the game's asset directory.