You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RichTextField/TextField在OnUpdate的时候触发了OnSizeChanged, 到上层需要BatchUpdate的节点执行SetRenderingOrder时,因为此时的_textChanged是true, 所以会在 Rect rect = child.GetBounds(initiator);
时触发EnsureSizeCorrect(),将所有的同级节点都移除,导致
int count = _children.Count;
for (int i = 0; i < count; i++)
count发生了变化,但是这里的值时旧的,会 throw OutOfRange Exception
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
FairyGUI.Container.CollectChildren (FairyGUI.Container initiator, System.Boolean outlineChanged) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:945)
FairyGUI.Container.CollectChildren (FairyGUI.Container initiator, System.Boolean outlineChanged) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:970)
FairyGUI.Container.CollectChildren (FairyGUI.Container initiator, System.Boolean outlineChanged) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:970)
FairyGUI.Container.CollectChildren (FairyGUI.Container initiator, System.Boolean outlineChanged) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:970)
FairyGUI.Container.DoFairyBatching () (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:882)
FairyGUI.Container.CollectChildren (FairyGUI.Container initiator, System.Boolean outlineChanged) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:967)
FairyGUI.Container.CollectChildren (FairyGUI.Container initiator, System.Boolean outlineChanged) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:970)
FairyGUI.Container.DoFairyBatching () (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:882)
FairyGUI.Container.SetRenderingOrder (FairyGUI.UpdateContext context) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:851)
FairyGUI.Container.Update (FairyGUI.UpdateContext context) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:828)
FairyGUI.Container.Update (FairyGUI.UpdateContext context) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:814)
FairyGUI.Container.Update (FairyGUI.UpdateContext context) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:814)
FairyGUI.Container.Update (FairyGUI.UpdateContext context) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:814)
FairyGUI.Container.Update (FairyGUI.UpdateContext context) (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Container.cs:814)
FairyGUI.Stage.InternalUpdate () (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/Stage.cs:768)
FairyGUI.StageEngine.LateUpdate () (at ./Library/PackageCache/fairygui/Runtime/Scripts/Core/StageEngine.cs:28)
The text was updated successfully, but these errors were encountered:
RichTextField/TextField在OnUpdate的时候触发了OnSizeChanged, 到上层需要BatchUpdate的节点执行SetRenderingOrder时,因为此时的_textChanged是true, 所以会在
Rect rect = child.GetBounds(initiator);
时触发EnsureSizeCorrect(),将所有的同级节点都移除,导致
count发生了变化,但是这里的值时旧的,会 throw OutOfRange Exception
The text was updated successfully, but these errors were encountered: