Unity3d NGUI can create font can click effect, click on the open web links
There are Chinese font display, can direct call system built-in fonts, does not need the third party font support
UILabel (Script parameters)
The first font options, NGUI is using a static font, when we need to show Chinese, it is best to use dynamic fonts, or you can create static font set
Font Size: font size
Material: The font textures, such as the need for font color
Text: Display content
Overflow: Filler content options, 1, ShrinkContent (content based filling) 2, ClampContent (in the font for the base shear)
3, ResizeFreely (content as the base level for filling) 4, with content high as reference for filling
Alignment: Alignment, font
Keep crisp: Dynamic font sharpening
Gradient: Font change
Effect: The fonts
Spaceing: Font spacing
Max Lines: The number of rows to display font
BBCode: Use the NGUI custom formatting font font
1, Create Chinese font
A. first creates a UILabel in Widget Tool
B. in the NGUI inspector window, select Unity UILabel, then select Font-Arial
C. We are now using dynamic fonts, can display Chinese
2, Create a link font
A. need to add the click event UILabel add a Script
void OnClick ()
{
UILabel lbl = GetComponent<UILabel>();
if (lbl != null)
{
string url = lbl.GetUrlAtPosition(UICamera.lastHit.point);
if (!string.IsNullOrEmpty(url)) Application.OpenURL(url);
}
}
The B. for the current UILabel add a Box Collider, adjust the Box Collider size for the current UILabel window size
The Is Trigger option is on the hook
C. NGUI currently supports formatting font three, 1 ([b]bold[/b] display effect dynamic font changes) 2 ([u]underline[/u] underline
[s]strikethrough[/s] Delete line) 3 ([url=http://www.tasharen.com/][u]clickable hyperlinks[/u][/url] add a web link)
Show all formatting, click clickable to open the link
The use of Unity3d NGUI (two) (UILabel Chinese font and click on the font)