appit
Topic Author
Posts: 4
Joined: 14 Aug 2014, 06:43

[UNITY] Error with fontfamilyconverter

23 Aug 2014, 02:34

Hi guys,
I am working with XAML for my game GUI in Blend. I created a standard button with image brush for background. But when I tried to test it, Unity gave me the error that it can't convert the content string using FontFamilyConverter. Do I need to define my own style first ? Also, I would eventually want to generalize the button styles, but I have no clue how I would proceed with that. Any help/advice is appreciated. Sorry if the questions are a bit newbie level, but I am just learning XAML with this project. So bare with me. :)

Image
Last edited by appit on 23 Aug 2014, 02:38, edited 1 time in total.
 
appit
Topic Author
Posts: 4
Joined: 14 Aug 2014, 06:43

Re: Error with fontfamilyconverter

23 Aug 2014, 02:36

I don't know why the image is not showing up, but here is the url:
http://tinypic.com/r/ouseo9/8
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: [UNITY] Error with fontfamilyconverter

24 Aug 2014, 23:18

Hi!

You are probably using a kind of FontFamily syntax we don't support. We are improving this part in v1.2, for now you should follow the syntax shown in the text tutorial. Anyway, if you paste here the XAML I will provide you more help.

About styling buttons. I recommend starting with our Styles and Templates Tutorial. Take your time to understand everything, it is not an easy subject. We also provide several themes in the Unity package you can examine to learn.

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 63 guests