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

Pages: [1]
1
 :'( Let me cry for a moment...
You got the point, it's not v3.9.4b but v3.9.4.
I found the bug in PropertyReferenceDrawer.cs in v3.9.4.
/// <summary>
   /// Convert the specified list of delegate entries into a string array.
   /// </summary>

   static public string[] GetNames (List<Entry> list, string choice, out int index)
   {
      index = 0;
      string[] names = new string[list.Count + 1];
      names[0] = string.IsNullOrEmpty(choice) ? "<Choose>" : choice;

      for (int i = 0; i < list.Count; )
      {
         Entry ent = list;
         string del = NGUITools.GetFuncName(ent.target, ent.name);
         names[++i] = del;
         if (index == 0 && string.Equals(del, choice))
            index = i;
      }
      Array.Sort(names);      //this line must be removed!!!
      return names;
   }

Array.Sort(names);      //this line must be removed!!!
This line cause the EventDelegate names all mixed up.

2
Only I have the problem UIButton OnClick Method showing on the Inspector mixed up ???

3
Nothing to do with the code.
I just want to say it's hard to assign OnClick Event/Method through Inspector. The Inspector OnClick Event/Delegator showing all mixed up. 
I would like to show you a screenshot to show the problem but could not find how to do it here.


4
I add a TweenAlpha Component and my Monobehaviour Tip Component onto a GameObject. When I add a OnFinished method to TweenAlpha, sth wrong: "Could not find method 'GetComponentsInChildren' on Tip".  But I add the method HideSelf() from Tip Monobehaviour.  It seems that NGUI mixed up the assigned method.
The similar thing happens to UIButton Click Method.
Nothing like this happens in NGUI 3.9.2....
Who can tell me what's wrong ?

5
I have tried  UIDrawCall.Count(panel) ,  panel.drawCalls.Count. They all return 0, both in run time and editor mode.
so, can anybody tell me how to get UIPrefab's drawcall through Script?

ps. I know I could use NGUI Drawcall Tool to see the drawcall. But I would like to get all the data through script automatically not just one by one through NGUI DrawcallTool.


【solved】
Thanks for hints from ArenMook.
I also read source code about UIDrawcallViewer of NGUI.
Select the GameObject in  Hierarchy then the UIDrawcall.Count(Panel) can work.

Pages: [1]