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

Pages: [1] 2 3 ... 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?

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; = 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
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)

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);   
        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?

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 ?

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

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?

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.

How to use TweenScale for the UILabel keep the  PixelPerfect?


How to give the default value for the UIInput in Editor model?

NGUI 3 Support / How to get the text line num of UILabel currently?
« on: February 22, 2014, 09:00:37 AM »
 How to get the text line num of UILabel currently?

NGUI 3 Support / How to know the dragon move direction about scroll view?
« on: February 10, 2014, 01:25:31 AM »
how to easy  know from left to right or opposite?? or from top to bottom?

NGUI 3 Support / Some question about the scrollview !
« on: January 20, 2014, 08:56:26 AM »
1. How to know whether the scrollview is reached the  left or right border when move finished?
2. How to do the UILeftOnChild like UICenterOnChild?

Maybe the picture can help you understand me!

NGUI 3 Support / [Resolved] Have any sample about the SpriteAnimation?
« on: January 17, 2014, 08:15:57 AM »
How to set the time every frame?
How to give the sprite name i want?
How to receive the play finish event?

NGUI 3 Support / Why remove the UpdateNow from UIGrid 3.0 later?
« on: January 15, 2014, 02:17:39 AM »
Why remove the UpdateNow from UIGrid? I think it's a good funtion, I can view the  the result  immediately!

Pages: [1] 2 3 ... 6