Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - stc105

Pages: [1]
1
NGUI 3 Support / Re: Special Characters Break Text Wrapping
« on: March 30, 2018, 10:10:30 AM »
Nope. I'm all about the font.

Anyway, I figured out the issue. Because Font Awesome has a ton of glyphs, the ch numbers can get into the tens of thousands. Because of that, the ch will accidentally be flagged as eastern.

See line 1202 in NGUIText

  1. if (ch > 12287) eastern = true;

Problem with this line of code, is it assumes the user is using a specific font what follows the average standards, which Font Awesome does not.

Since I wont be using eastern characters, this was an easy fix for me.

2
NGUI 3 Support / Special Characters Break Text Wrapping [Solved]
« on: March 28, 2018, 11:11:48 PM »
Using special characters from a font like FontAwesome (see https://fontawesome.com/v4.7.0/) will cause the text wrapping to break on UILabel.

I'll look into why later - if ArenMook doesn't look into it.

3
NGUI 3 Support / Re: How to get the dimensions of UIWidget
« on: January 06, 2014, 01:53:44 AM »
Size... what do you mean by size (pixels or scale)?

If your "container" is a UIWidget, you can just call the container and look for height and width property:

Script on container:
  1. float height = this.GetComponent<UIWidget>().height;
  2. float width = this.GetComponent<UIWidget>().width;
  3.  

However, the widget is not going to change it's dimensions because you created a sprite as it's child.

If your "container" is just an empty GameObject then there is no size except scale, which is found by looking in the property this.transform.scale


4
NGUI 3 Support / Issue with tiled sprites - reporting bug
« on: December 17, 2013, 12:49:45 AM »
First time poster, long time user.

Just upgraded to 3.0.7 f3 today, and a tiled sprite that is same size as screen has a weird glitch where a line exist that is transparent (pixels not being drawn?). I have attached a picture, this is running inside unity editor (game view). The tiled green grass sprite is dimensions 800 x 600 at depth 1. The sprite behind it is blue with the same dimensions but depth 0.

I expected the screen to be completely green, but what I get is a small blue line in the green grass sprite. If I change the green grass sprite's dimensions to 801 x 600 or 799 x 600, the blue line goes away.

Prior to updating, every worked, from NGUI 2.x, NGUI 3.0.6, up to today when I upgraded. I am pretty well antiquated with NGUI so I am sure it is not a settings or script error. I will be rolling back my version till this is fixed.

Oh also (but unrelated), last time I switch to publish for Flash I got an error about some variable being ambiguous . So I casted it , and the whole console exploded with errors. Does the newer versions of NGUI support Flash?

Pages: [1]