This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
global:fonts [2014/01/07 00:09] Mistermind |
global:fonts [2015/05/15 03:59] (current) Mistermind |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Fonts ====== | ====== Fonts ====== | ||
+ | // | ||
You can save different prefabs storing different font files to your project. This allows you to have custom fonts ready to be used in your project. Click in one of the font prefabs provided for an example. Currently, these examples use GUIText, but you can use other tools (like NGUI) to achieve your desired font effect. | You can save different prefabs storing different font files to your project. This allows you to have custom fonts ready to be used in your project. Click in one of the font prefabs provided for an example. Currently, these examples use GUIText, but you can use other tools (like NGUI) to achieve your desired font effect. | ||
Line 11: | Line 12: | ||
**Font Prefab:** The Game Object Prefab containing a GUIText | **Font Prefab:** The Game Object Prefab containing a GUIText | ||
+ | ---- | ||
===== How to create a new font ===== | ===== How to create a new font ===== | ||
- | Inside '' | + | Inside '' |
* Create a new font folder (name it anything you want) and drag your font file here. | * Create a new font folder (name it anything you want) and drag your font file here. | ||
- | * Click on the font and check the inspector. Make sure you have the character set as **Unicode**. | + | * Click on the font and check the Inspector. Click on '' |
+ | * Change the size to your liking. | ||
* Click under the little wheel on the top right of the inspector window and click **Create Editable Copy**: | * Click under the little wheel on the top right of the inspector window and click **Create Editable Copy**: | ||
{{ : | {{ : | ||
- | * This will create a copy of this font, a material and a texture to this font with " | + | * This will create a copy of this font, a material and a texture to this font with " |
+ | * (Optional) Using Photoshop, edit the texture as you please (add stroke, change colors, add gradient, etc) | ||
* Click on the texture file and select '' | * Click on the texture file and select '' | ||
- | * Click on the material file and on the Inspector, select the Shader '' | + | * Click on the material file and on the Inspector, select the Shader '' |
- | * Under the Hierarchy, click Create -> GUI Text. Rename it as the name of your font or just " | + | * Under the Hierarchy, click Create -> GUI Text. Rename it as the name of your font or just " |
* Drag your font file into the Font field. | * Drag your font file into the Font field. | ||
* Drag your Material under the Material field. | * Drag your Material under the Material field. | ||
- | * Notice you can't edit the font size through here. That's because you are using the Unicode System. With the Unicode you can edit your texture so the font has your unique style. If the font is too big or to small you can use the Scale option under Transform. Notice that this will not work well with any font and you might end up with different scale numbers (as shown on '' | + | * Notice you can't edit the font size through here. That's because you are using the Unicode System. With the Unicode you can edit your texture so the font has your unique style. If the font is too big or to small you can use the Scale option under Transform. Notice that this will not work well with any font and you might end up with different scale numbers (as shown on '' |
* Drag the created GameObject to the font folder to create a prefab. | * Drag the created GameObject to the font folder to create a prefab. | ||
* Under [[global: | * Under [[global: | ||
Line 43: | Line 47: | ||
---- | ---- | ||
- | [[global:introduction|< Back to Global Editor]] | + | [[global:start|< Back to Global Editor]] |