Unity Fonts Error
Posted: 20 Nov 2017, 19:25
When I import my XAML file, I get the following error:
Assets/XAML/test.xaml(11): Unable to convert 'Fonts/Segoe UI Black' to a valid value for property TextBlock.FontFamily.
UnityEngine.Debug:LogError(Object, Object)
<ImportXaml>c__AnonStorey0:<>m__0() (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:359)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
The font family describes what should be used for a TextBlock in my XAML, but it can never find the font I want. Of course, this font was purely for testing so that I could figure out how to actually import fonts correctly: I clearly have not found that out yet! Haha! I have tried different variations of the font family property like 'Fonts/Segoe UI Black.ttf', 'Fonts/#Segoe UI Black', 'Fonts/#Segoe UI Black.ttf', but they never work. What is the way that fonts should be imported into Unity? I have attached the image to show the file structure of the project
Inside 'Fonts', there is a ttf called 'Segoe UI Black.ttf'. Can anyone identify my problem?
Assets/XAML/test.xaml(11): Unable to convert 'Fonts/Segoe UI Black' to a valid value for property TextBlock.FontFamily.
UnityEngine.Debug:LogError(Object, Object)
<ImportXaml>c__AnonStorey0:<>m__0() (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:359)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
The font family describes what should be used for a TextBlock in my XAML, but it can never find the font I want. Of course, this font was purely for testing so that I could figure out how to actually import fonts correctly: I clearly have not found that out yet! Haha! I have tried different variations of the font family property like 'Fonts/Segoe UI Black.ttf', 'Fonts/#Segoe UI Black', 'Fonts/#Segoe UI Black.ttf', but they never work. What is the way that fonts should be imported into Unity? I have attached the image to show the file structure of the project
Inside 'Fonts', there is a ttf called 'Segoe UI Black.ttf'. Can anyone identify my problem?