So to make it simple, I am working with ScriptableObject in my project, all of a sudden i tried to add one more and the editor became so laggy that I can't keep working on the project it's way too annoying to handle...
I have creating a lot of ScriptableObject in my Unity project by hand. My program is quite simple, I just load my ScriptableObject from my Assets folder then do things with them.
I have mainly 3 types of ScriptableObject :
- Extract (contains string, texture & audio)
- Theme (contains a enum value & a list of Extract)
- Oeuvre (contains a string & a list of Theme)
The data linked on the ScriptableObject are in another folder in Assets.
I tried to upgrade from Unity 2019.4.14f1 to 2020.3.4f1 and... nothing changed, too much lag to do anything correctly, it's like several seconds each time I click on a folder BUT the editor started to display a message while freezing (instead of not showing anything at all and just not responding) its says ProjectBrowser.OnGUI.repaint with a progress bar.
At this point I started to observe that the lags occured only while I was browsing some ScriptableObject in my project, when I want to edit some c# script or gameObject within the Scene the message never show up and the editor is smooth like before.
At this point I have around 200 ScriptableObject right now when the editor started to lag.
Maybe I am doing something wrong ? Is the problem coming from the ScriptableObject to reference each other ? Would be great if anyone could give me an hint :)
I am working with a project2D, if it can help...
Thanks in advance.