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

Pages: [1]
1
Thanks MATE! You sure are right!  :D

2
NGUI 3 Support / button OnClick() dosent work from 3.8.2 to 3.11.2
« on: May 30, 2017, 04:32:19 AM »
Hey. I recently upgraded NGUI version from 3.8.2 to 3.11.2 and Onclick() dosent seems to work when my tooltipDelay is 0, and i want it to be 0. I had the same problem when i upgraded to 3.8.2 a long time ago, but i fixed it with this fix: http://www.tasharen.com/forum/index.php?topic=12948.msg58584#msg58584

Anyway this fix dosent help anymore:( I would appreciate some help on this matter.

Btw im talking about mouse clicking on buttons with Onclick functions.

thanks in advance.

3
NGUI 3 Support / Re: UIFollowTarget question
« on: March 10, 2017, 07:55:57 AM »
So what did you do?

4
NGUI 3 Support / Making Hudtext not follow camera.
« on: March 07, 2017, 10:18:57 AM »
Hey! i can't seems to wrap my head around how to make the hudtext entries stay still on the place it has been spawned.  :'(
Basically i want the text to stand still on the place my character got hit while my character is moving. 
in Update in hudtext:

   for (int i = mList.Count; i > 0; )
      {
         Entry ent = mList[--i];
         offset = Mathf.Max(offset, ent.offset);

         if (uiCamera != null)
         {
         
            Vector3 pos = gameCamera.WorldToViewportPoint(ent.instPos);

            // Determine the visibility and the target alpha
            int isVisible = (gameCamera.orthographic || pos.z > 0f) && (pos.x > 0f && pos.x < 1f && pos.y > 0f && pos.y < 1f) ? 1 : 0;
            bool vis = (isVisible == 1);

            // If visible, update the position
            if (vis)
            {
               pos = uiCamera.ViewportToWorldPoint(pos);
               pos = transform.parent.InverseTransformPoint(pos);
            
               pos.z = 0f;
               ent.instPos = pos;
               ent.label.transform.localPosition = new Vector3(ent.instPos.x, ent.instPos.y, 0);
               offset += Mathf.Round(ent.label.cachedTransform.localScale.y * ent.label.fontSize);
               
            }

         }



Thanks in advance :)

5
NGUI 3 Support / Ngui Render over Ugui Screen space - overlay.
« on: September 21, 2016, 07:46:23 AM »
Hey ! I have a system in Ngui so i want those sprites to render over unitys Gui Screen space - overlay. Is this possible?

6
Hey! If a sprite is always moving, in my case a health bar. Should it be in a panel or just under uiroot? What is best for performance for moving sprites. Or should I move the entire panel?

Thanks in advance  :)

7
NGUI 3 Support / scaling problem
« on: December 03, 2015, 11:05:14 AM »
Hey. When i moving a child-sprite out of his parent, or duplicating an sprite, its scaling goes to 0,0,0. Any Fix for it? its also a problem when i use drag and drop function to move it to a "drag and drop container". The scaling goes to 0,0,0 when it get parentet to the container object.

thanks in advance.

8
Ty alot :) really helps

9
NGUI 3 Support / Re: Button not working with mouseclick after upgrade.
« on: April 24, 2015, 08:48:56 AM »
well it fixed the problem tho, TY :)

10
NGUI 3 Support / Re: Button not working with mouseclick after upgrade.
« on: April 24, 2015, 08:46:03 AM »
Yes. But i want it to be 0

11
NGUI 3 Support / Button not working with mouseclick after upgrade.
« on: April 24, 2015, 06:05:58 AM »
Hey. i've been working with NGUI version 3.4.8 for a long time now. We recently moved our prosject to unity 5, and wanted to upgrade to the newest NGUI version(3.8.2).
The problem is that buttons dont work anymore with mouseclick. We use OnClick() function to get the function we want to run, and a "UIKeyBinding" script to get the hotkey. The hotkey is working fine, but i still cant click on the buttons with mouse. I dont think it is raycast problem, because the tooltip is working fine and when u click on the button the "UiButton" on hover and pressed is changing colors.
I also have "RayCast Hit triggers" on in physics, and colliders in the buttons. It was working before so dunno what happened.

Thanks in advance.

12
NGUI 3 Support / Action bar in Windward
« on: November 12, 2014, 05:54:39 AM »
Is it possible to u to describe how u made ur actionbar in windward? Did u use Grid to set up the buttons/sprite?

Pages: [1]