The creation and use of-ugui art font in Unity tutorial

Source: Internet
Author: User

Article reprinted from: http://www.unity.5helpyou.com/3211.html

Game production, often need to use a variety of fancy text or numbers, and font library often does not achieve the effect we need, so a picture is needed to replace the text function. Ugui the use of WordArt is also relatively simple, below we will introduce the next Ugui art font production and use, this article uses Bmfont as a font making tool, simply tell how to make art fonts:
1. Let the art submit the text after chunking:

2. Open the Bmfont tool and locate Image Manager (Edit->open Image Manager):

3. Import the font image and bind it with the text ID, such as:

Click 1 position, import a single picture, select a specific text image, and enter the text corresponding to the ID (ID can put the mouse on the text, in the lower right corner to view), click OK to import a text.

4. Finally export the picture, the specific export steps can be in Baidu search, here do a brief introduction:

Select the export settings in exports, modify the size of the exported image, bit depth, picture format and so on, click Save Bitmap Font as to create the art library,

After the build there is a fnt file and more than one text image:

This is the data we finally imported into unity.

4. Place the above data in Unity's resource directory, right-click on the Fnt file, and in the right-click menu Choose Batchcreateartistfont (described later) to generate the relevant font file:

Number.fontsetting is the font file we can get in Ugui.

5. Create a text control under the canvas, assign the font file to the font of text, and modify the font's material to sprite-default, otherwise it may not appear normal.

The effect is as follows:

6, the text used to generate the font of the batch processing tool to download:

UGUIFontEditor.txt (Download 3864)

Links: http://pan.baidu.com/s/1jG5pZUm
Extract code: 8BSI

All right, this unity3d tutorial about Ugui Art font production and use to this end, the next we farewell!

The creation and use of-ugui art font in Unity tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.