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.

Topics - jimbbq

Pages: [1]
NGUI 3 Support / NGUI Iphone 4 (iOS6) performance
« on: May 28, 2014, 05:56:48 AM »
Dear all

I have a major problem with NGUI performance on Iphone.

I only have two labels displaying the scores and lives in the game. I did try to add a fancy effect to the text labels (by making them big and changing their colours when the scores and lives change), but it has caused me several days of nightmares trying to figure out what is causing the hitch in my game. I removed the labels, and now everything is running very smoothly.

I really like how easy it is to use NGUI to build pretty GUI, but it slows down the game performance on iphone so much! Is there a way I can improve the performance of NGUI?


NGUI 3 Support / bizarre situation: objects in Grid not visible?
« on: April 25, 2014, 07:57:24 AM »

I am trying to implement a simple "email" interface in my game (see the attached picture) and I run into a very bizarre situation. I have two scenes, in scene01, the email items in the grid are visible (see email01.jpg). And then I copied and pasted the same email interface to scene02 and all the emails items disappeared (see email02.jpg). The email items are added to the email interface on Start(). When I examine the Hierarchy of scene 2, I can see all the email item objects clones (under Grid, see hierarchy_scene02.jpg), but they just won't show up in my game!??

Does anyone have any idea what might have caused this?


NGUI 3 Support / do something at the end of tween animation
« on: April 24, 2014, 08:45:09 AM »

I am trying to call a function at the end of a tweening animation, but I have no idea how to do this. Is there something like?

void onEndTween(){



NGUI 3 Support / scroll view problem with itween
« on: April 09, 2014, 03:53:13 AM »
Hi there

I have a scroll view , a child object to a sprite (a window, see Pic1). Inside the scroll view, there are several scrollable buttons. All is well, until I implemented scale tween to close and open the window. During the closing and opening scale tween, the scrollable buttons stick out of the scroll view! (see pic 2). I also attached a video to show the problem.

Any clue how this can be addressed?

NGUI 3 Support / 3.5.6 problem with button on click
« on: April 07, 2014, 05:15:58 AM »

I just updated to 3.5.6, and my button onclick method to play a tween broke! Now I got an error message that says "AmbigousMatchException"

Any idea what it is?

NGUI 3 Support / turning a normal button into on-off switch button
« on: April 01, 2014, 08:33:11 AM »

I am trying to write a script to turn a button into an on-off switch button: (see below)

It works when my mouse pointer is within the button area, but as soon as my mouse pointer moves out of the button, the sprite changes back to the original sprite. How do I address this?

   public bool isOn; // Clicking will toggle the button on and off. Starts off
   public string spriteName_On; // The name of the sprite when it's on
   public string spriteName_Off; // The name of the sprite when it's off

   public void OnClick()
      if (isOn)
         //Is on, turn off
         this.GetComponent<UISprite>().spriteName = spriteName_Off;

         // Is off, turn on
         this.GetComponent<UISprite>().spriteName = spriteName_On;
      isOn = !isOn; // Toggle it so it flips between on and off

NGUI 3 Support / tooltil not showing.
« on: March 29, 2014, 01:52:03 PM »

I copied the tooltip object from the Character example scene from NGUI.

I want the tooltip to show on a button when I hover over it.

How can I achieve this?


[edit] I made it work now with the following. However \n does not create a line break. How can I create a line break? Also how can I set the alpha value of the tooltip ? It is semi-transparent and I want it appear in solid colour. thanks!

   public string tooltiptext = "Human\n Resources";

   void OnTooltip(bool show) {
      if (show)

NGUI 3 Support / disabling all the interactions of a window
« on: March 26, 2014, 02:17:48 PM »
Dear all

I am new to NGUI and I hope you can help me with a question. I have set up an "option window" with a list of options and another "confirmation window" (see attached). When I click on an option, the "confirmation window" pops up. I want to disable all the interactions of the option window when the "confirmation window" is up. How can I do this?


Pages: [1]