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

Pages: 1 2 [3] 4 5 ... 13
31
it only work for the first time, it failed if reset to beginning

32
How to allow TypewriterEffect ignore from framerate ?

33
NGUI 3 Support / UIEventListener vs EventDelegate ?
« on: June 16, 2014, 02:03:03 AM »
Is UIEventListener going to be Obsolete in NGUI > 3.x ?

34
NGUI 3 Support / Re: [Feature Request] UIPanelTool - Layer filter?
« on: June 10, 2014, 09:58:21 AM »
During gameplay, there will be hundreds of UIPanel in different layer ( either enabled or disabled ) on the scene. When using the UIPanelTools, there are too many UIPanel is shown on the list. It is hard to view their depth.

35
NGUI 3 Support / [Feature Request] UIPanelTool - Layer filter?
« on: June 05, 2014, 11:10:40 PM »
Can we have Layer filter in UIPanelTool ?

36
NGUI 3 Support / TypewriterEffect more basic features
« on: June 05, 2014, 03:53:23 AM »
1. Finish - Show all text instantly.
2. IsFinish - Check if it is finished.
3. OnFinished delegate - callback when it is finished.

Actually, I have implemented those features by myself, but I don't know if the naming is following the NGUI practice.

37
NGUI 3 Documentation / Re: UILabel
« on: June 03, 2014, 09:27:14 AM »
I have ui label of emotion icon tag [xp] that work on 3.5.x, but it doesn't work for 3.6.2.

38
If new EventDelegate cannot support this situation, I am keen to modify all of my code.
And I just wonder to know why we need  REFLECTION_SUPPORT ?

39
It is just an simple example using lambda expression, it may be more complicated if needed.
e.g.

  1. int t = 0;
  2. EventDelegate.Set(tweenPosition.onFinished, () => {
  3. if ( t > 0 )
  4.    TestMethod1();
  5. else
  6.    TestMethod2();
  7. });



40
So, what is the usage of REFLECTION_SUPPORT ?

41
No, it didn't work.
Can I use SendMessage instead of Reflection ?

42
I find that it works only if Execute() is using mTarget.SendMessage.

43
  1. public class ClassA : BaseClass {
  2.  
  3.  
  4. }
  5.  
  6. public abstract class BaseClass : MonoBehaviour {
  7.        
  8.         void Awake()
  9.         {
  10.                 var tweenPosition = GetComponent<TweenPosition>();
  11.  
  12.         EventDelegate.Set(tweenPosition.onFinished, () => TestMethod() );
  13.                
  14.         }
  15.        
  16.         protected void TestMethod()
  17.         {
  18.                 Debug.Log( "BaseClass TestMethod" );   
  19.         }
  20. }
  21.  
  22.  

ClassA.cs is attached to GameObject with TweenPosition Component.

If NGUI = 3.5.5, it works without problem
If NGUI > 3.5.5, it throws the following exception
Could not find method '<Awake>m__0' on ClassA
UnityEngine.Debug:LogError(Object, Object)
EventDelegate:Cache() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:362)
EventDelegate:Execute() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:417)
EventDelegate:Execute(List`1) (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:566)
UITweener:Update() (at Assets/NGUI/Scripts/Tweening/UITweener.cs:224)

44
NGUI 3 Support / Billboard shader for NGUI
« on: April 22, 2014, 03:23:16 AM »
This shader can make the 3D UI always face camera.

Modify the Shader "Unlit/Transparent Color"

  1. //Replace:
  2. o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
  3. //With:
  4. o.vertex = mul(UNITY_MATRIX_P, mul(UNITY_MATRIX_MV, float4(0.0, 0.0, 0.0, 1.0)) + float4(v.vertex.x, v.vertex.y, 0.0, 0.0));

  1. //Replace:
  2. fixed4 col = tex2D(_MainTex, i.texcoord) * i.color;
  3. //With:
  4. fixed4 col = tex2D(_MainTex, float2(_MainTex_ST.xy * i.texcoord.xy + _MainTex_ST.zw)) * i.color;

45
NGUI 3 Support / Can I specify the UV position of UITexture ?
« on: March 28, 2014, 05:34:45 AM »
It would be great to specific portion of UITexture to show. As I don't want to use UIPanel clipping..

Pages: 1 2 [3] 4 5 ... 13