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

Pages: [1] 2 3
1
NGUI 3 Support / DragObject Restrict Whitin panel problem
« on: October 17, 2013, 11:11:33 AM »
hi
I am trying to move a sprite and the dot wich has the UIDragObject script, my intention is the dot will be always at the same distance of the sprite...
i managed to do that, but i cant get the Restrict within panel working. both the dot and the sprite go out the panel... the panel is alphacliped.
Thanks

2
NGUI 3 Support / Re: How to dynamically populate UIGrid on scroll
« on: October 13, 2013, 10:51:57 AM »
where is the  OnPress(false) notification. ????
i am trying to do the same... and like him my isvisible is not get updated....
thanks

3
NGUI 3 Support / Re: hit.textureCoord with UITexture [SOLVED]
« on: July 03, 2013, 12:35:16 AM »
MR. You are a genius!!!!
Thanks you VERY VERY MUCH!!!!

This function will return the UV Coordinates of the hit to a UITexture
  1.        
  2. Texture2D tex;
  3. tex = UItarget.material.mainTexture as Texture2D;
  4. public Vector2 getUVPoint2(Vector3 origin)
  5. {
  6.         RaycastHit hit;
  7.         if (Physics.Raycast(origin, Vector3.forward, out hit)){
  8.                 Vector3 pixelUV = UItarget.transform.InverseTransformPoint(hit.point);
  9.                 pixelUV.x *= tex.width;
  10.                 pixelUV.y *= tex.height;
  11.                 return pixelUV;
  12.         }
  13.         return new Vector2(-1,-1);
  14. }
  15.  

4
NGUI 3 Support / Re: hit.textureCoord with UITexture
« on: July 02, 2013, 12:13:31 AM »
Any idea where to start?

5
NGUI 3 Support / hit.textureCoord with UITexture
« on: July 01, 2013, 09:52:34 PM »
hi
i am using UITexture and Vector2 pixelUV = hit.textureCoord; always return 0
how can i fix it?
thanks

6
NGUI 3 Support / Re: Events not firing...
« on: July 01, 2013, 09:47:13 PM »
Start with the examples... in 99% of the cases NGUI works perfectly.
Check the layers...

7
NGUI 3 Support / Alpha Clipping a PLane
« on: July 01, 2013, 09:45:08 PM »
Hi,
Is there any way to Alpha Clipping a plane/cube or any other NON UIWidget?
i need to clip the non-uiwidget or be able to retrive the uv (x,y) coordinates from a uiwidget... uitexture in particular...
Vector2 pixelUV = hit.textureCoord; always return 0

8
NGUI 3 Support / equivalent to .renderer.bounds.min ?
« on: July 01, 2013, 04:21:29 PM »
Hi,
i was using a plane but now i changet to a UITexture, so i sue all the same in the UI and do not mix different stuff... but i need a replacement for
"Vector3 bl = mask.renderer.bounds.min" 
i tried
Vector3 bl = NGUIMath.CalculateAbsoluteWidgetBounds(mask.transform).min;
and
Vector3 bl = NGUIMath.CalculateWidgetCorners(mask.GetComponent<UITexture>())[0];

but both gives me the same... and it is not correct... i think they are not in worlds coords...

Thanks!!!

9
NGUI 3 Support / Re: blink // flash button
« on: June 28, 2013, 05:28:23 PM »
the tween's have an event they can send when they finish... you can play it once, when it finish play it again...

10
NGUI 3 Support / Re: HTMLEngine for NGUI and Unity3D.GUI [RELEASE]
« on: June 26, 2013, 11:37:00 AM »
The web link is broken, the correct one is
http://u3d.as/content/zhing/html-engine-for-ngui-unity-gui/4pD

Also may i see the manul or any explanation on how to us it before i buy?
i am really interested in this!!!!!!
Thanks!!!!

11
TNet 3 Support / Re: What is the Best Server/Hosting Server for TNet?
« on: June 17, 2013, 04:24:24 PM »
is your server a unity executable or you can do like a command line program?
thanks!

12
NGUI 3 Support / UIPopupList Localozation problem
« on: June 10, 2013, 10:26:53 AM »
Hi,
i needed to add .Trim() in lines 169 and 507 to properly show the localized text, if not i get key not found with "anykey\r"  so to remove the '\r' i added the trim() and started to work properly.
is there any other solution?

i added the values in the popuplist by hand copy/paste them from an spreadsheet to unity.

Thanks
David

13
NGUI 3 Support / Re: NGUI + FingerGestres
« on: April 27, 2013, 08:27:13 PM »
i have a tap detector on an object but if the user move the camera, the gui (made with ngui) ends over the object and if the user tap the gui the ray hits both the button and the object... how i solve this?
Thanks

14
NGUI 3 Support / Re: NGUI + FingerGestres
« on: April 20, 2013, 08:53:30 AM »
hey any news?

15
NGUI 3 Support / Re: "OnClick" optimization
« on: December 27, 2012, 12:10:23 PM »
Any suggestions on how i can check that?
Thanks!!!

Pages: [1] 2 3