UE4
Topic Author
Posts: 62
Joined: 29 Dec 2017, 06:32

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

27 Mar 2018, 08:57

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
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

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

27 Mar 2018, 11:07

Does it work if you are a relative URI? Something like 'Fonts/#KaiTi'
 
UE4
Topic Author
Posts: 62
Joined: 29 Dec 2017, 06:32

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

28 Mar 2018, 12:06

relative uri works fine. I think if I can set font property by select one in blend would be more useful
 
User avatar
hcpizzi
Site Admin
Posts: 316
Joined: 09 Feb 2012, 12:40

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

02 Apr 2018, 10:37

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.

Who is online

Users browsing this forum: Google [Bot] and 38 guests