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

Pages: [1]
1
NGUI 3 Support / EventDelegateEditor change request
« on: December 02, 2014, 05:39:17 AM »
Hello, im using Field method of EventDelegateEditor draw EventDelegate field for my costume editor, and im getting Null refrence on multi-select of list variable. Adding
  1. if (list != null && list.Any())
fixes problem, so please add it to NGUI. Thx =)

  1. static public void Field (Object undoObject, List<EventDelegate> list, string noTarget, string notValid, bool minimalistic)
  2.         {
  3.                 bool targetPresent = false;
  4.                 bool isValid = false;
  5.  
  6.             if (list != null && list.Any())  //<------ this check
  7.             {
  8.                 // Draw existing delegates
  9.                 for (int i = 0; i < list.Count;)
  10.                 {
  11.                     EventDelegate del = list[i];
  12.  
  13.                     if (del == null || (del.target == null && !del.isValid))
  14.                     {
  15.                         list.RemoveAt(i);
  16.                         continue;
  17.                     }
  18.  
  19.                     Field(undoObject, del, true, minimalistic);
  20.                     EditorGUILayout.Space();
  21.  
  22.                     if (del.target == null && !del.isValid)
  23.                     {
  24.                         list.RemoveAt(i);
  25.                         continue;
  26.                     }
  27.                     if (del.target != null) targetPresent = true;
  28.                     isValid = true;
  29.                     ++i;
  30.                 }
  31.             }

2
NGUI 3 Support / MissingReferenceException inside NGUI
« on: July 01, 2014, 09:46:21 AM »
MissingReferenceException: The object of type 'UILabel' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Component.get_transform () (at C:/BuildAgent/work/aeedb04a1292f85a/artifacts/EditorGenerated/UnityEngineComponent.cs:20)
UIRect.get_cachedTransform () (at Assets/NGUI/Scripts/Internal/UIRect.cs:196)
UIRect.get_parent () (at Assets/NGUI/Scripts/Internal/UIRect.cs:239)

I get this randomly after updating to 3.6.6
Edit:
(and on 3.6.4(did not get it yet on 3.6.6)).
Also i get (randomly) similar errors on UItween components.(il add trace when next time i get this on UItween)

Pages: [1]