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

Pages: [1] 2 3 ... 10
1
NGUI 3 Support / Re: Error about soft clip of UIPanel!
« on: August 12, 2014, 06:23:22 AM »
If have any way to resolve it.  Please let me know. Thank you so much.

2
NGUI 3 Support / Re: Error about soft clip of UIPanel!
« on: August 11, 2014, 09:45:01 AM »
Can you help to fix this error?

3
NGUI 3 Support / Re: Error about soft clip of UIPanel!
« on: August 10, 2014, 11:34:51 PM »
I've confirm this error happen if from the OpenGL3.0 .   work fine on the OpenGL2.0,
Could you help me to resolve it ?

4
NGUI 3 Support / Re: Error about soft clip of UIPanel!
« on: August 10, 2014, 05:06:22 AM »
This error still happen when i build the apk for the Android.
It doesn't work when i set the Graphics level is "Automatic", But work fine when i set the Graphics level is "Force OpenGL2.0"

5
NGUI 3 Support / Re: Error about soft clip of UIPanel!
« on: August 01, 2014, 08:38:19 AM »
But ..... How to do it if less than 2.0

6
NGUI 3 Support / Error about soft clip of UIPanel!
« on: July 30, 2014, 09:00:16 PM »
This function only can work on above OpenGL2.0?
It doesn,t work the clip on less than OpenGL2.0?

7
NGUI 3 Support / Error about EventDelegate!
« on: May 12, 2014, 11:37:13 AM »
Here is my code:
  TweenAlpha ta = gameObject.AddComponent<TweenAlpha>();
  ta.from = 1f;
  ta.to = 0f;
  ta.delay = delay;
  ta.duration = duration;
 ta.AddOnFinished(new EventDelegate(AlphaOut));   

It works fine in Last version, But alway throws the below Exception when i update to 3.5.9!
How to use it correct?



Failed to bind MUIFloatItemNeedSpaw.AlphaOut
Ambiguous matching in method resolution
UnityEngine.Debug:LogError(Object)
EventDelegate:Cache() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:359)
EventDelegate:Execute() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:420)
EventDelegate:Execute(List`1) (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:569)
UITweener:Update() (at Assets/NGUI/Scripts/Tweening/UITweener.cs:224)

8
NGUI 3 Support / Issue about NGUI GrayScale!
« on: May 12, 2014, 08:07:08 AM »
I try to do the GrayScaleEffect in NGUI,I change the Shader(Transparent Colored),
Old Code:
fixed4 frag (v2f i) : COLOR 

    fixed4 col = tex2D(_MainTex, i.texcoord) * i.color; 
    return col; 
}
New Code;
fixed4 frag (v2f i) : COLOR 

    fixed4 col;   
    if (i.color.r < 0.001)   
    { 
        col = tex2D(_MainTex, i.texcoord);   
        float grey = dot(col.rgb, float3(0.299, 0.587, 0.114));   
        col.rgb = float3(grey, grey, grey);   
    } 
    else   
    {   
        col = tex2D(_MainTex, i.texcoord) * i.color;   
    }   
    return col;   


It work fine from 0.jpg to 1.jpg , see the picture
But it woule be some error 3.jpg when the gameobjct is child of UIScrollView also use soft clip of UIpanel.
Could you help me to do the Gray Effect i want?

9
NGUI 3 Support / Issue about the UILable( lost some words)!
« on: May 10, 2014, 06:31:33 AM »
0.jpg is property of UILabel . But lost some words when running(1.jpg),
have any wrong with me ?

10
When i set the OverFlow is ResizeHeight, the label.width always is Dimensions's width.
But i want to get the "W1" , see the picture.

11
How to get the actual width of UILable when ResizeHeight model?
Or calculate the width.

12
NGUI 3 Support / Question about the UIPanel?
« on: April 20, 2014, 11:39:51 AM »
Please see the picture.
How to Calculate whether the item border is out of the Panel clip?

13
Sorry for my english.
How to know whether has any child(UIDragScrollView gameobject)   out of the border of UIScrollView.
If has and how to know the border which out of. (top,bottom,left,right.).

14
How to know whether can move to left,right,up,down  about  UIScrollView?
Means whether reached the border (left,right,up,down)
I know the "canMoveVertically", but i don't know up or down.

15
How to use TweenScale for the UILabel keep the  PixelPerfect?

Pages: [1] 2 3 ... 10