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

Pages: [1]
1
OK, I've done the same with another project. Same problem.

What is the right way to prevent clicks/taps going through the buttons into the game?

Thanks

2
Hello,

I've updated NGUI for my older game because of porting it to WP8 (the old version didn't work). I've updated NGUI to the latest version and using the version of Unity 4.6 RC2 Beta.

The problem is that "if(UICamera.hoveredObject == null)" doesn't work. When i debugged, to show which object is actually hovered when I click, it's always UI Root if I don't click any NGUI button.

I've worked around this by changing it to if(UICamera.hoveredObject == uiRoot) and it works now. But I wonder if this is the intended behaviour?

Thanks

3
NGUI 3 Support / Crash on OpenGL ES 3.0 Devices?
« on: November 03, 2014, 03:34:44 PM »
Hello,

Does anyone know if this bug was fixed in NGUI?

http://answers.unity3d.com/questions/655219/crash-on-opengl-es-30-device.html?sort=oldest

I can't test it unfortunately.

Thanks

4
NGUI 3 Support / Re: UpdateColor is not a member of UIButton
« on: March 19, 2014, 06:31:46 AM »
I've solved this by adding:

public void UpdateColor (bool shouldBeEnabled, bool immediate)
   {
      if (tweenTarget)
      {
         if (!mInitDone)
         {
            //mInitDone = true;
            OnInit();
         }
         
         Color c = shouldBeEnabled ? defaultColor : disabledColor;
         TweenColor tc = TweenColor.Begin(tweenTarget, 0.15f, c);
         
         if (tc != null && immediate)
         {
            tc.value = c;
            tc.enabled = false;
         }
      }
   }

To the UIButton.cs

Do you think this is ok? I hope it will not cause some problems. So far it works great, just as it were.

5
NGUI 3 Support / UpdateColor is not a member of UIButton
« on: March 19, 2014, 06:04:27 AM »
Hello,

I've Updated NGUI to the 3.5.4 r2 and i get the " 'UpdateColor' is not a member of 'UIButton' " eror.

I used to change the colors for buttons depending on whether the weapon is equipped, out of ammo, unequipped or locked. After changing colors for every state (hover, press etc), I'd call UpdateColor function so the color change is immediate. In the new NGUI, there's no UpdateColor function anymore in UIButton. How can I solve this problem as quickly as possible?

Thank you.

6
NGUI 3 Support / Re: GUI Back Button Leading to Different Previous Menus
« on: October 30, 2013, 06:55:00 PM »
Hello,

Thank you for your reply. I've solved it just now. There are various ways to solve it but I thought that there might be something in NGUI already.

I've just used a static variable for a current menu ID, as I've did before, remembering which menu was the previous one and then used those numbers to toggle corresponding NGUI tweens, that is, fading/scaling/moving the current menu out of the way and fading-in/moving/scaling the previous menu into the view.

Thanx

7
NGUI 3 Support / GUI Back Button Leading to Different Previous Menus
« on: October 30, 2013, 10:57:30 AM »
Hello,

I'm new to NGUI and was wondering, what would be the best way to achieve this:

-I have a menu, let's call it "Upgrade" menu which can be called from various other menus in the project. From Main Menu, from Pause Menu, from LevelFinished Menu etc...
-This Upgrade Menu has a Back button which should lead to the Menu from which the Upgrade Menu was called.

Before NGUI, I'd simply check which menu was the previos one with a simple int variable (main menu = 1, pause menu = 2, game menu = 3 etc). I've tried this approach but I can't pass an argument with NGUI button message.

I have various solutions for this in mind but all of them seem a bit clunky and unnecessary complicated.

One more note, I'm a self-taught UnityScript scripter. My main expertise is 3D graphics and animation but I had to learn scripting since I couldn't find anyone in my area willing to cooperate. I have absolutely no formal background in programming.

Cheers

Pages: [1]