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

Pages: [1]
1
NGUI 3 Support / Re: Clear BetterList from UIWrapContent
« on: June 05, 2014, 06:07:32 AM »
I've found out that this issue is only happening with UIWrapContent, not with UIGrid. So meanwhile I'll use a grid instead.
Adding this to UIWrapContent line 154 fixes the errors, but there is a gap between the elements that currently are and the ones I destroyed before. Thanks.

  1.         for (int i = 0; i < mChildren.size; ++i)
  2.                         {
  3.                                 Transform t = mChildren[i];
  4.  
  5.                                 if(t == null)
  6.                                 {
  7.                                         continue;
  8.                                 }
  9.  

2
NGUI 3 Support / Clear BetterList from UIWrapContent
« on: June 05, 2014, 05:38:50 AM »
Hi,

I have a WrapContent component and I remove/instantiate elements underneath this gameObject. The issue I have is that after I clear all the children destroying them, UIWrapContent is trying to access to those destroyed transforms OnDrag:

  1. MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.
  2. UnityEngine.Transform.get_localPosition ()
  3. UIWrapContent.WrapContent () (at Assets/NGUI/Scripts/Interaction/UIWrapContent.cs:157)
  4. UIWrapContent.OnMove (.UIPanel panel) (at Assets/NGUI/Scripts/Interaction/UIWrapContent.cs:62)
  5. UIPanel.set_clipOffset (Vector2 value) (at Assets/NGUI/Scripts/UI/UIPanel.cs:400)
  6. UIScrollView.MoveRelative (Vector3 relative) (at Assets/NGUI/Scripts/Interaction/UIScrollView.cs:653)
  7. UIScrollView.MoveAbsolute (Vector3 absolute) (at Assets/NGUI/Scripts/Interaction/UIScrollView.cs:667)
  8. UIScrollView.Drag () (at Assets/NGUI/Scripts/Interaction/UIScrollView.cs:789)
  9. UIDragScrollView.OnDrag (Vector2 delta) (at Assets/NGUI/Scripts/Interaction/UIDragScrollView.cs:112)

Thanks.

Pages: [1]