question

Ben R. avatar image
Ben R. asked

Exception on editing Title Data in Unity Editor

Using Unity 2021.2.0f1, PF SDK 2.116.211012. On editing title data, post saving it, this exception is getting thrown:

InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.SortedList`2+Enumerator[TKey,TValue].MoveNext () (at <b311a02a3c774e9bb4c0712b506d7ddf>:0)
PlayFab.PfEditor.EditorCoroutine.Update () (at Assets/Plugins/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:124)
UnityEngine.Debug:LogException(Exception)
PlayFab.PfEditor.EditorCoroutine:Update() (at Assets/Plugins/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:140)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

It appears the title data is getting set, just need to fix the remove/enumeration ... also noticed that at the point the

shouldRunAfterTimes.RemoveAt(index);

is called it has a ton of identical looking values ... didn't dig further to see if that's really needed/intended.

unity3d
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

We will try to reproduce this issue in our testing project.

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.