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 - pad406

Pages: [1] 2 3 ... 5
1
Thanks, that did the job perfectly

2
Thanks, I'll try that this evening

3
I'm getting the below error, it usually only happens the 2nd and subsequent time I run from the editor, but every time on IOS or Android. And on Android and IOS the fonts/characters are all weird.

Failed to generate dynamic font texture, because all the needed characters do not fit onto a single texture. Try using less text or a smaller font size.

It suggest using less text or a smaller font, both of which I have experimented with to no avail. The app is basically a set of headings that when you click on them, expand out (via a tween) a set of options. Some of the screens would have quite a lot of text, but I have brought it back to just 2 topics, each with about 5 options and still get the same error. I am currently using Veranda font, but have tried with one of the NGUI fonts also. There's nothing on the fonts, no gradients, shading or anything like that. The error traces back to this line in NGUIText.cs:

  1. #if DYNAMIC_FONT
  2.         if (dynamicFont != null)
  3.             dynamicFont.RequestCharactersInTexture(text, finalSize, fontStyle);
  4. #endif

One other thing, the vast majority of the text is not dynamic, they are either set to clamp content or resize height freely.

TIA

4
NGUI 3 Support / Re: Problem getting tween working
« on: June 28, 2014, 08:53:35 AM »
Ok, got it working using anchors at last. My problem eventually turned out to be the Y scale on the labels that were being tweened. With the table you don't need to initally set this to .01 on the transform, but when you are anchoring other objects to it, you do. Pretty obvious in hindsight. Not so much when you're doing it. :)

5
NGUI 3 Support / Re: Problem getting tween working
« on: June 27, 2014, 04:07:51 PM »
Or maybe not! I tried removing the table. With no anchors set the text in the tween simply goes behind the buttons, as expected. Then I tired to set the top anchor on the 2nd button to the bottom of the 1st label and it all went a bit mad. The button jumped miles down the screen, and I mean miles. I presume that is what you meant by using the anchors

6
NGUI 3 Support / Re: Problem getting tween working
« on: June 27, 2014, 02:31:53 PM »
Ok I'll try that so. It's a very good product, I'm sure I'll get my head around it eventually :)

7
NGUI 3 Support / Re: Problem getting tween working
« on: June 27, 2014, 01:49:49 PM »
Thanks, I seem to be getting there slowly. On the table, do I not need that as the button operates the tween that opens up and I want the subsequent buttons to move fown the screen

8
NGUI 3 Support / Re: Problem getting tween working
« on: June 25, 2014, 03:47:43 PM »
Hi Aren

it seems to be snapping the text label to the top middle of the table (or maybe the panel) based on the way the pivot is set on the label. So if it's set as left justified you get what I posted earlier, but if I set the label as centered then it looks ok, it does move slightly but it's barely noticeable.  What causes this?

9
NGUI 3 Support / Re: Problem getting tween working
« on: June 25, 2014, 02:06:39 PM »
Rushing last night, meant to put top left. The table is there for the tween scale so that they move to expand, as per your first answer. I'll have a look at the content area and try and figure out what's happening. Thanks.

10
NGUI 3 Support / Re: Problem getting tween working
« on: June 24, 2014, 02:42:56 PM »
It's set to TopRight and no matter what I set it still jumps to the right (not left as I said earlier). Have attached 3 screen shots. First is before I press play, then play with origin set as top left, 3rd with origin as top right. It's probably something silly or something I just don't understand but I'm lost!!


11
NGUI 3 Support / Re: Problem getting tween working
« on: June 23, 2014, 02:32:44 PM »
Not sure what you mean by origin point? Where is that set? is it the transform position? If yes (I doubt it), no matter what I set that to the table moves to the same position.

12
NGUI 3 Support / Re: Problem getting tween working
« on: June 22, 2014, 07:49:26 AM »
Thanks Aren, that did the job, don't know how I missed that one.

Just one other thing though, now everything looks perfectly lined until I run it, then the panel/table jumps up and to the left. Currently I have no anchors on it, I don't think I should need them in this case. But why is it just moving straight away?

13
NGUI 3 Support / Problem getting tween working
« on: June 20, 2014, 04:27:23 PM »
Trying to put a small demo together for my wife on something and it's really simple, but I can't get it to work. Have attached 2 images to make it easier to explain. Top part is some text, user can scroll up and down (all that works fine). Selecting one of the buttons then opens up some text (pushing down the other options). Then clicking on it again closes it up. Typical tween scale stuff. But for some reason it's now working for me, the text displays but it's behind the other buttons, they never move down the screen. I know I'm missing something real simple but I just can't spot it. 2nd image is the hierarchy from Unity. Any ideas anyone? TIA


14
NGUI 3 Support / Re: Embeded Tweens
« on: June 09, 2014, 03:20:45 AM »
Thanks Aren, I'll give that a go. Thought I was missing something all right

15
NGUI 3 Support / Embeded Tweens
« on: June 08, 2014, 01:09:35 PM »
Not sure if that's the right description for my question, but basically I'm am trying to do something similar to the Quest log (Example 9), but I want sub options within one of them. So for example
Option A
Option B
Option C

Clicking A or C brings up text, just like the example, no problem. But when Option B is clicked, I want to show some text, then
Option B1
Option B2
Option B3

each of these can also be clicked to bring up more information.

I, kind of, got it working, but as the label expands under the sub option, the other sub options are not moved down.

is this even possible, if so any hints on doing it would be greatly appreciated


Pages: [1] 2 3 ... 5