- In my project, certain things take up to minutes to perform, like reorganizing Lists with Odin components. It seems to be related to certain data being in the items. My class structures are rather, complex. There is recursion, but it’s limited to 16 in Odin’s preferences.
- -Open the provided project
-Open SampleScene and choose “GameObject”
-Click on “test (Game)” in field “Game editor”
-Click on FoldoutGroup called “Open this foldout to… (etc)”
-Rearrange the items in the Actions list
-> This should take way too long until the new order settles
-If you remove the action item called “Script” and add empty actions to the list, it’s quick - it seems to be related to the contents of the “Script” item. Inside the “Script” → Details → Set constant variables -contents - this is the one that makes everything slower. The more data it contains, the slower it gets.
The thing I don’t get why this data affects simple reorganizing the parent “Actions”-List.
Another thing related to this - I’m currently using CustomAddFunction and CustomRemoveFunction in Actions-list. These functions simply do actions.Add(new GameEventAction()) but if I don’t use custom functions, these operations also take a really long time. So something extra happens in the default add function of Odin Inspector and the more content the “Script” container has in the “Set constant variables”-List, the slower the adding and removing is as well. 3. I’m attaching a profiler screen capture of the time of rearranging the List that takes way too long. Hopefully it helps somehow 4. 2019.3.0b9 5. 2.1.8 6. No 7. Windows 10 Pro 1909
ATTACHMENT: I’m delivering the project privately via download link because I don’t have permission to share the code publicly. I apogolize for the trouble.